File tree 4 files changed +33
-0
lines changed
4 files changed +33
-0
lines changed Original file line number Diff line number Diff line change @@ -231,6 +231,12 @@ SMALL_VENICE_MODEL= # Default: llama-3.3-70b
231
231
MEDIUM_VENICE_MODEL = # Default: llama-3.3-70b
232
232
LARGE_VENICE_MODEL = # Default: llama-3.1-405b
233
233
234
+ # Akash Chat API Configuration docs: https://chatapi.akash.network/documentation
235
+ AKASH_CHAT_API_KEY = # Get from https://chatapi.akash.network/
236
+ SMALL_AKASH_CHAT_API_MODEL = # Default: Meta-Llama-3-2-3B-Instruct
237
+ MEDIUM_AKASH_CHAT_API_MODEL = # Default: Meta-Llama-3-3-70B-Instruct
238
+ LARGE_AKASH_CHAT_API_MODEL = # Default: Meta-Llama-3-1-405B-Instruct-FP8
239
+
234
240
# fal.ai Configuration
235
241
FAL_API_KEY =
236
242
FAL_AI_LORA_PATH =
Original file line number Diff line number Diff line change @@ -291,6 +291,11 @@ export function getTokenForProvider(
291
291
character . settings ?. secrets ?. VENICE_API_KEY ||
292
292
settings . VENICE_API_KEY
293
293
) ;
294
+ case ModelProviderName . AKASH_CHAT_API :
295
+ return (
296
+ character . settings ?. secrets ?. AKASH_CHAT_API_KEY ||
297
+ settings . AKASH_CHAT_API_KEY
298
+ ) ;
294
299
}
295
300
}
296
301
Original file line number Diff line number Diff line change @@ -465,6 +465,26 @@ export const models: Models = {
465
465
[ ModelClass . LARGE ] : settings . LARGE_VENICE_MODEL || "llama-3.1-405b" ,
466
466
} ,
467
467
} ,
468
+ [ ModelProviderName . AKASH_CHAT_API ] : {
469
+ endpoint : "https://chatapi.akash.network/api/v1" ,
470
+ settings : {
471
+ stop : [ ] ,
472
+ maxInputTokens : 128000 ,
473
+ maxOutputTokens : 8192 ,
474
+ temperature : 0.6 ,
475
+ } ,
476
+ model : {
477
+ [ ModelClass . SMALL ] :
478
+ settings . SMALL_AKASH_CHAT_API_MODEL ||
479
+ "Meta-Llama-3-2-3B-Instruct" ,
480
+ [ ModelClass . MEDIUM ] :
481
+ settings . MEDIUM_AKASH_CHAT_API_MODEL ||
482
+ "Meta-Llama-3-3-70B-Instruct" ,
483
+ [ ModelClass . LARGE ] :
484
+ settings . LARGE_AKASH_CHAT_API_MODEL ||
485
+ "Meta-Llama-3-1-405B-Instruct-FP8" ,
486
+ } ,
487
+ } ,
468
488
} ;
469
489
470
490
export function getModel ( provider : ModelProviderName , type : ModelClass ) {
Original file line number Diff line number Diff line change @@ -208,6 +208,7 @@ export type Models = {
208
208
[ ModelProviderName . NANOGPT ] : Model ;
209
209
[ ModelProviderName . HYPERBOLIC ] : Model ;
210
210
[ ModelProviderName . VENICE ] : Model ;
211
+ [ ModelProviderName . AKASH_CHAT_API ] : Model ;
211
212
} ;
212
213
213
214
/**
@@ -236,6 +237,7 @@ export enum ModelProviderName {
236
237
NANOGPT = "nanogpt" ,
237
238
HYPERBOLIC = "hyperbolic" ,
238
239
VENICE = "venice" ,
240
+ AKASH_CHAT_API = "akash_chat_api" ,
239
241
}
240
242
241
243
/**
You can’t perform that action at this time.
0 commit comments