on main help sign in
fix(vertex): small fix for anthropic models via google vertex (#1214)
7ac96efAndrey Nering
internal/llm/provider/vertexai.go+1−1
@@ -30,7 +30,7 @@ func newVertexAIClient(opts providerClientOptions) VertexAIClient {
30 }
30 }
31
31
32 model := opts.model(opts.modelType)
32 model := opts.model(opts.modelType)
33− if strings.Contains(model.ID, "anthropic") || strings.Contains(model.ID, "claude-sonnet") {
33+ if strings.Contains(model.ID, "anthropic") || strings.Contains(model.ID, "claude") || strings.Contains(model.ID, "sonnet") {
34 return newAnthropicClient(opts, AnthropicClientTypeVertex)
34 return newAnthropicClient(opts, AnthropicClientTypeVertex)
35 }
35 }
36 return &geminiClient{
36 return &geminiClient{