fead: no idea
This commit is contained in:
1 parent
a65d39cea0
commit
57bcd549d1
3 files changed
+13
-4
No files matched your search
@@ -31,7 +31,7 @@ func newEmbedder(apiKey, model, baseURL string) *embedder {
|
||||
return &embedder{
|
||||
apiKey: apiKey,
|
||||
model: model,
|
||||
baseURL: strings.TrimRight(baseURL, "/"),
|
||||
baseURL: strings.TrimSuffix(strings.TrimRight(baseURL, "/"), "/v1"),
|
||||
httpClient: &http.Client{
|
||||
Timeout: 30 * time.Second,
|
||||
},
|
||||
|
||||
Reference in new issue
Block a user