Merge pull request #111 from shengsuan/ssy

add ShengSuanYun (胜算云) as a models provider
This commit is contained in:
Meng Zhuo
2026-02-13 17:41:15 +08:00
committed by GitHub
2 changed files with 13 additions and 0 deletions

View File

@@ -149,6 +149,7 @@ type ProvidersConfig struct {
Gemini ProviderConfig `json:"gemini"`
Nvidia ProviderConfig `json:"nvidia"`
Moonshot ProviderConfig `json:"moonshot"`
ShengSuanYun ProviderConfig `json:"shengsuanyun"`
}
type ProviderConfig struct {
@@ -248,6 +249,7 @@ func DefaultConfig() *Config {
Gemini: ProviderConfig{},
Nvidia: ProviderConfig{},
Moonshot: ProviderConfig{},
ShengSuanYun: ProviderConfig{},
},
Gateway: GatewayConfig{
Host: "0.0.0.0",
@@ -337,6 +339,9 @@ func (c *Config) GetAPIKey() string {
if c.Providers.VLLM.APIKey != "" {
return c.Providers.VLLM.APIKey
}
if c.Providers.ShengSuanYun.APIKey != "" {
return c.Providers.ShengSuanYun.APIKey
}
return ""
}