Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions env.example
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ GOOGLE_API_KEY=your-api-key
XAI_API_KEY=your-api-key
OPENROUTER_API_KEY=your-api-key
MOONSHOT_API_KEY=your-api-key
DEEPSEEK_API_KEY=your-api-key

# Ollama (Local LLM)
OLLAMA_BASE_URL=http://127.0.0.1:11434
Expand Down
8 changes: 8 additions & 0 deletions src/components/ModelSelector.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,14 @@ const PROVIDERS: Provider[] = [
{ id: 'kimi-k2-5', displayName: 'Kimi K2.5' },
],
},
{
displayName: 'DeepSeek',
providerId: 'deepseek',
models: [
{ id: 'deepseek-chat', displayName: 'DeepSeek V3' },
{ id: 'deepseek-reasoner', displayName: 'DeepSeek R1' },
],
},
{
displayName: 'OpenRouter',
providerId: 'openrouter',
Expand Down
10 changes: 10 additions & 0 deletions src/model/llm.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ const FAST_MODELS: Record<string, string> = {
xai: 'grok-4-1-fast-reasoning',
openrouter: 'openrouter:openai/gpt-4o-mini',
moonshot: 'kimi-k2-5',
deepseek: 'deepseek-chat',
};

/**
Expand Down Expand Up @@ -101,6 +102,15 @@ const MODEL_PROVIDERS: Record<string, ModelFactory> = {
baseURL: 'https://api.moonshot.cn/v1',
},
}),
'deepseek-': (name, opts) =>
new ChatOpenAI({
model: name,
...opts,
apiKey: getApiKey('DEEPSEEK_API_KEY', 'DeepSeek'),
configuration: {
baseURL: 'https://api.deepseek.com',
},
}),
'ollama:': (name, opts) =>
new ChatOllama({
model: name.replace(/^ollama:/, ''),
Expand Down
1 change: 1 addition & 0 deletions src/utils/env.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ const PROVIDERS: Record<string, ProviderConfig> = {
anthropic: { displayName: 'Anthropic', apiKeyEnvVar: 'ANTHROPIC_API_KEY' },
google: { displayName: 'Google', apiKeyEnvVar: 'GOOGLE_API_KEY' },
moonshot: { displayName: 'Moonshot', apiKeyEnvVar: 'MOONSHOT_API_KEY' },
deepseek: { displayName: 'DeepSeek', apiKeyEnvVar: 'DEEPSEEK_API_KEY' },
openrouter: { displayName: 'OpenRouter', apiKeyEnvVar: 'OPENROUTER_API_KEY' },
ollama: { displayName: 'Ollama' },
};
Expand Down