Skip to content

Commit

Permalink
genai: fix hasAuthOption check (#109)
Browse files Browse the repository at this point in the history
Following #105, a wrong string snuck in

@andersonjoseph FYI
  • Loading branch information
eliben committed May 10, 2024
1 parent 4d4139a commit e36c492
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion genai/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ func hasAuthOption(opts []option.ClientOption) bool {
ts := v.Type().String()

switch ts {
case "option.withAPIKEY":
case "option.withAPIKey":
return v.String() != ""

case "option.withHttpClient",
Expand Down

0 comments on commit e36c492

Please sign in to comment.