on main help sign in
fix(vertex): small fix for anthropic models via google vertex (#1214)
commit7ac96ef0686106b53324a6901fac10a9f00e8a4f authorAndrey Nering <andreynering@users.noreply.github.com> dateFri 10 Oct 2025, 11:45 (1 year ago) parentca66a11
1 file changed+1−1
internal/llm/provider/vertexai.go+1−1
internal/llm/provider/vertexai.go+1−1
@@ -30,7 +30,7 @@ func newVertexAIClient(opts providerClientOptions) VertexAIClient {
3030 }
3131
3232 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") {
3434 return newAnthropicClient(opts, AnthropicClientTypeVertex)
3535 }
3636 return &geminiClient{