diff --git a/pkg/providers/anthropic/provider.go b/pkg/providers/anthropic/provider.go index cc49472f8..98cf38b75 100644 --- a/pkg/providers/anthropic/provider.go +++ b/pkg/providers/anthropic/provider.go @@ -63,7 +63,7 @@ func NewProviderWithTokenSource(token string, tokenSource func() (string, error) func NewProviderWithTokenSourceAndBaseURL(token string, tokenSource func() (string, error), apiBase string) *Provider { p := NewProviderWithBaseURL(token, apiBase) p.tokenSource = tokenSource - p.isOAuth = true + p.isOAuth = strings.HasPrefix(token, "sk-ant-oat01-") return p }