Skip to content

Commit

Permalink
Merge pull request #9 from tensorchord/fix-default-url
Browse files Browse the repository at this point in the history
fix default api url not work
  • Loading branch information
xieydd authored Jul 22, 2024
2 parents 2d91f78 + c98263a commit 9435f70
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion client/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
}
Expand Down

0 comments on commit 9435f70

Please sign in to comment.