From ec8e6299c7c8b94e9ffa78508f97f0046865cbaa Mon Sep 17 00:00:00 2001 From: Jonathan Amsterdam Date: Sat, 15 Jun 2024 03:30:05 -0400 Subject: [PATCH] genai: spell name of HTTP client option correctly Result: NewClient no longer returns an error if the user passes option.WithHTTPClient. --- genai/client.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/genai/client.go b/genai/client.go index 5bec536..a8e9c21 100644 --- a/genai/client.go +++ b/genai/client.go @@ -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":