Apply suggestions from code review
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
parent
08ecfe9f74
commit
3b49ba8a81
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue