Merge pull request #3 from agenciaspace/claude/hostinger-remote-deployment-TGVof

fix: add explicit moonshot/kimi case in provider switch
This commit is contained in:
agenciaspace 2026-02-18 01:18:43 -03:00 committed by GitHub
commit 707ba3672f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -324,6 +324,15 @@ func CreateProvider(cfg *config.Config) (LLMProvider, error) {
model = "deepseek-chat"
}
}
case "moonshot", "kimi":
if cfg.Providers.Moonshot.APIKey != "" {
apiKey = cfg.Providers.Moonshot.APIKey
apiBase = cfg.Providers.Moonshot.APIBase
proxy = cfg.Providers.Moonshot.Proxy
if apiBase == "" {
apiBase = "https://api.moonshot.cn/v1"
}
}
case "github_copilot", "copilot":
if cfg.Providers.GitHubCopilot.APIBase != "" {
apiBase = cfg.Providers.GitHubCopilot.APIBase