Rename
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
package localagent
|
||||
package localagi
|
||||
|
||||
import (
|
||||
"encoding/json"
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
package localagent
|
||||
package localagi
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
package localagent
|
||||
package localagi
|
||||
|
||||
import (
|
||||
"bytes"
|
||||
@@ -9,14 +9,14 @@ import (
|
||||
"time"
|
||||
)
|
||||
|
||||
// Client represents a client for the LocalAgent API
|
||||
// Client represents a client for the LocalAGI API
|
||||
type Client struct {
|
||||
BaseURL string
|
||||
APIKey string
|
||||
HTTPClient *http.Client
|
||||
}
|
||||
|
||||
// NewClient creates a new LocalAgent client
|
||||
// NewClient creates a new LocalAGI client
|
||||
func NewClient(baseURL string, apiKey string, timeout time.Duration) *Client {
|
||||
if timeout == 0 {
|
||||
timeout = time.Second * 30
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
package localagent
|
||||
package localagi
|
||||
|
||||
import (
|
||||
"encoding/json"
|
||||
|
||||
@@ -5,7 +5,7 @@ import (
|
||||
"encoding/json"
|
||||
"fmt"
|
||||
|
||||
"github.com/mudler/LocalAgent/pkg/xlog"
|
||||
"github.com/mudler/LocalAGI/pkg/xlog"
|
||||
"github.com/sashabaranov/go-openai"
|
||||
"github.com/sashabaranov/go-openai/jsonschema"
|
||||
)
|
||||
|
||||
@@ -15,8 +15,8 @@ import (
|
||||
"path/filepath"
|
||||
"time"
|
||||
|
||||
"github.com/mudler/LocalAgent/core/agent"
|
||||
"github.com/mudler/LocalAgent/pkg/xlog"
|
||||
"github.com/mudler/LocalAGI/core/agent"
|
||||
"github.com/mudler/LocalAGI/pkg/xlog"
|
||||
)
|
||||
|
||||
var _ agent.RAGDB = &WrappedClient{}
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
package xstrings_test
|
||||
|
||||
import (
|
||||
xtrings "github.com/mudler/LocalAgent/pkg/xstrings"
|
||||
xtrings "github.com/mudler/LocalAGI/pkg/xstrings"
|
||||
. "github.com/onsi/ginkgo/v2"
|
||||
. "github.com/onsi/gomega"
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user