feat: add provider deepseek
This commit is contained in:
parent
5872e0f55e
commit
afc3a2cda3
2 changed files with 9 additions and 0 deletions
|
|
@ -161,6 +161,7 @@ type ProvidersConfig struct {
|
|||
Nvidia ProviderConfig `json:"nvidia"`
|
||||
Moonshot ProviderConfig `json:"moonshot"`
|
||||
ShengSuanYun ProviderConfig `json:"shengsuanyun"`
|
||||
DeepSeek ProviderConfig `json:"deepseek"`
|
||||
}
|
||||
|
||||
type ProviderConfig struct {
|
||||
|
|
|
|||
|
|
@ -303,6 +303,14 @@ func CreateProvider(cfg *config.Config) (LLMProvider, error) {
|
|||
workspace = "."
|
||||
}
|
||||
return NewClaudeCliProvider(workspace), nil
|
||||
case "deepseek":
|
||||
if cfg.Providers.DeepSeek.APIKey != "" {
|
||||
apiKey = cfg.Providers.DeepSeek.APIKey
|
||||
apiBase = cfg.Providers.DeepSeek.APIBase
|
||||
if apiBase == "" {
|
||||
apiBase = "https://api.deepseek.com/v1"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue