From c98263a83b0bd4b27ba5d1d07a846972dc840436 Mon Sep 17 00:00:00 2001 From: xieydd Date: Mon, 22 Jul 2024 20:07:59 +0800 Subject: [PATCH] fix default api url not work Signed-off-by: xieydd --- client/client.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/client.go b/client/client.go index 75002f0..6450b55 100644 --- a/client/client.go +++ b/client/client.go @@ -138,7 +138,7 @@ func WithApiKey(apiKey string) Option { func WithDefaultApiUrl() Option { return func(c *Client) { - if c.apiKey == "" { + if c.apiUrl == "" { c.apiUrl = defaultPGVectorsCloudURL } }