feat: add claudecode with oauth to AI providers

This commit is contained in:
2026-04-21 16:27:58 +02:00
parent 985768f400
commit f2bb88f040
12 changed files with 267 additions and 32 deletions

View File

@ -27,6 +27,8 @@ func NewProvider(name, apiKey, model, endpoint string) (Provider, error) {
return newGemini(apiKey, model), nil
case "ollama":
return newOllama(endpoint, model), nil
case "claudecode":
return newClaudeCode(model), nil
default:
return nil, fmt.Errorf("unknown provider: %s", name)
}