From 3b49ba8a8188d8c453c5627f2d49b4df35d700fe Mon Sep 17 00:00:00 2001 From: xj Date: Thu, 19 Feb 2026 00:48:28 -0800 Subject: [PATCH] Apply suggestions from code review Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> --- pkg/providers/anthropic/provider.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 }