fix(auth): fix golint again
This commit is contained in:
parent
383c80b477
commit
971ff611fa
2 changed files with 2 additions and 3 deletions
|
|
@ -21,7 +21,6 @@ const (
|
||||||
defaultAnthropicModel = "claude-sonnet-4.6"
|
defaultAnthropicModel = "claude-sonnet-4.6"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
func authLoginCmd(provider string, useDeviceCode bool, useOauth bool) error {
|
func authLoginCmd(provider string, useDeviceCode bool, useOauth bool) error {
|
||||||
switch provider {
|
switch provider {
|
||||||
case "openai":
|
case "openai":
|
||||||
|
|
|
||||||
|
|
@ -271,8 +271,8 @@ func TestProvider_ChatStreamingRoundTrip(t *testing.T) {
|
||||||
if got := r.Header.Get("Authorization"); got != "Bearer refreshed-token" {
|
if got := r.Header.Get("Authorization"); got != "Bearer refreshed-token" {
|
||||||
t.Errorf("Authorization = %q, want %q", got, "Bearer refreshed-token")
|
t.Errorf("Authorization = %q, want %q", got, "Bearer refreshed-token")
|
||||||
}
|
}
|
||||||
if got := r.Header.Get("anthropic-beta"); got != anthropicBetaHeader {
|
if got := r.Header.Get("Anthropic-Beta"); got != anthropicBetaHeader {
|
||||||
t.Errorf("anthropic-beta = %q, want %q", got, anthropicBetaHeader)
|
t.Errorf("Anthropic-Beta = %q, want %q", got, anthropicBetaHeader)
|
||||||
}
|
}
|
||||||
|
|
||||||
w.Header().Set("Content-Type", "text/event-stream")
|
w.Header().Set("Content-Type", "text/event-stream")
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue