We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ec3f302 commit cfdefcdCopy full SHA for cfdefcd
pkg/localrag/client.go
@@ -13,6 +13,7 @@ import (
13
"net/http"
14
"os"
15
"path/filepath"
16
+ "strings"
17
"time"
18
19
"github.com/mudler/LocalAGI/core/agent"
@@ -26,7 +27,8 @@ type WrappedClient struct {
26
27
collection string
28
}
29
-func NewWrappedClient(baseURL, apiKey, collection string) *WrappedClient {
30
+func NewWrappedClient(baseURL, apiKey, c string) *WrappedClient {
31
+ collection := strings.TrimSpace(strings.ToLower(c))
32
wc := &WrappedClient{
33
Client: NewClient(baseURL, apiKey),
34
collection: collection,
0 commit comments