add claude

This commit is contained in:
qiangmzsx 2026-02-28 14:44:42 +08:00
parent c7a873c3b2
commit 39b05c1b79

View file

@ -111,7 +111,7 @@ func CreateProviderFromConfig(cfg *config.ModelConfig) (LLMProvider, string, err
cfg.RequestTimeout, cfg.RequestTimeout,
), modelID, nil ), modelID, nil
case "anthropic": case "anthropic", "claude":
if cfg.AuthMethod == "oauth" || cfg.AuthMethod == "token" { if cfg.AuthMethod == "oauth" || cfg.AuthMethod == "token" {
// Use OAuth credentials from auth store // Use OAuth credentials from auth store
provider, err := createClaudeAuthProvider() provider, err := createClaudeAuthProvider()