update openrouter
This commit is contained in:
@@ -8,8 +8,9 @@ interface BotConfig {
|
||||
token: string;
|
||||
};
|
||||
ai: {
|
||||
replicateApiToken: string;
|
||||
openRouterApiKey: string;
|
||||
model: string;
|
||||
classificationModel: string;
|
||||
maxTokens: number;
|
||||
temperature: number;
|
||||
};
|
||||
@@ -42,10 +43,14 @@ export const config: BotConfig = {
|
||||
token: getEnvOrThrow("DISCORD_TOKEN"),
|
||||
},
|
||||
ai: {
|
||||
replicateApiToken: getEnvOrThrow("REPLICATE_API_TOKEN"),
|
||||
openRouterApiKey: getEnvOrThrow("OPENROUTER_API_KEY"),
|
||||
model: getEnvOrDefault(
|
||||
"AI_MODEL",
|
||||
"lucataco/dolphin-2.9-llama3-8b:ee173688d3b8d9e05a5b910f10fb9bab1e9348963ab224579bb90d9fce3fb00b"
|
||||
"meta-llama/llama-3.1-70b-instruct"
|
||||
),
|
||||
classificationModel: getEnvOrDefault(
|
||||
"AI_CLASSIFICATION_MODEL",
|
||||
"meta-llama/llama-3.1-8b-instruct:free"
|
||||
),
|
||||
maxTokens: parseInt(getEnvOrDefault("AI_MAX_TOKENS", "500")),
|
||||
temperature: parseFloat(getEnvOrDefault("AI_TEMPERATURE", "1.2")),
|
||||
|
||||
Reference in New Issue
Block a user