fix anthropic Provider
This commit is contained in:
parent
feee0da945
commit
c7a873c3b2
1 changed files with 1 additions and 7 deletions
|
|
@ -128,13 +128,7 @@ func CreateProviderFromConfig(cfg *config.ModelConfig) (LLMProvider, string, err
|
||||||
if cfg.APIKey == "" {
|
if cfg.APIKey == "" {
|
||||||
return nil, "", fmt.Errorf("api_key is required for anthropic protocol (model: %s)", cfg.Model)
|
return nil, "", fmt.Errorf("api_key is required for anthropic protocol (model: %s)", cfg.Model)
|
||||||
}
|
}
|
||||||
return NewHTTPProviderWithMaxTokensFieldAndRequestTimeout(
|
return NewClaudeProviderWithBaseURL(cfg.APIKey, apiBase), modelID, nil
|
||||||
cfg.APIKey,
|
|
||||||
apiBase,
|
|
||||||
cfg.Proxy,
|
|
||||||
cfg.MaxTokensField,
|
|
||||||
cfg.RequestTimeout,
|
|
||||||
), modelID, nil
|
|
||||||
|
|
||||||
case "antigravity":
|
case "antigravity":
|
||||||
return NewAntigravityProvider(), modelID, nil
|
return NewAntigravityProvider(), modelID, nil
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue