Apply suggestions from code review

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
xj 2026-02-19 00:48:28 -08:00 committed by GitHub
parent 08ecfe9f74
commit 3b49ba8a81
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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
}