Skip to content

Commit

Permalink
genai: spell name of HTTP client option correctly (#139)
Browse files Browse the repository at this point in the history
Result: NewClient no longer returns an error if the user
passes option.WithHTTPClient.
  • Loading branch information
tangledpuzzle committed Jun 18, 2024
1 parent 714c060 commit 0c1fbd8
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 @@ -101,7 +101,7 @@ func hasAuthOption(opts []option.ClientOption) bool {
case "option.withAPIKey":
return v.String() != ""

case "option.withHttpClient",
case "option.withHTTPClient",
"option.withTokenSource",
"option.withCredentialsFile",
"option.withCredentialsJSON":
Expand Down

0 comments on commit 0c1fbd8

Please sign in to comment.