diff options
| author | polwex <polwex@sortug.com> | 2025-07-23 06:44:51 +0700 |
|---|---|---|
| committer | polwex <polwex@sortug.com> | 2025-07-23 06:44:51 +0700 |
| commit | e1e01fe1c702e33509a276eb1da6efc720c21164 (patch) | |
| tree | 1a3e0c8cf180a2e82ae8c4ecac62298ae865207b /index.ts | |
| parent | 9766782648617e232fbc4e40ea96a0e567c7cc73 (diff) | |
m
Diffstat (limited to 'index.ts')
| -rw-r--r-- | index.ts | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -16,25 +16,25 @@ export default function (choice: LLMChoice): AIModelAPI { : "chatgpt" in choice ? new Generic({ baseURL: "https://api.openai.com/v1", - apiKey: Bun.env.OPENAI_API_KEY!, + apiKey: Bun.env.OPENAI_API_KEY, model: choice.chatgpt || "o4-mini", }) : "deepseek" in choice ? new Generic({ baseURL: "https://api.deepseek.com", - apiKey: Bun.env.DEEPSEEK_API_KEY!, + apiKey: Bun.env.DEEPSEEK_API_KEY, model: "deepseek-reasoner", }) : "kimi" in choice ? new Generic({ baseURL: "https://api.moonshot.ai/v1", - apiKey: Bun.env.MOONSHOT_API_KEY!, + apiKey: Bun.env.MOONSHOT_API_KEY, model: "kimi-k2-0711-preview", // "kimi-latest"? }) : "grok" in choice ? new Generic({ baseURL: "https://api.x.ai/v1", - apiKey: Bun.env.XAI_API_KEY!, + apiKey: Bun.env.XAI_API_KEY, model: "grok-4", // "kimi-latest"? }) : new Generic({ |
