From 000c07831291bb7a09c8d149daa88dfcc8dbc7dc Mon Sep 17 00:00:00 2001 From: sunshineplan Date: Sun, 10 Mar 2024 10:16:41 +0800 Subject: [PATCH] Fix module name --- chatgpt/chatgpt.go | 3 ++- gemini/gemini.go | 3 ++- gemini/gemini_test.go | 3 ++- go.mod | 2 +- 4 files changed, 7 insertions(+), 4 deletions(-) diff --git a/chatgpt/chatgpt.go b/chatgpt/chatgpt.go index fa484e1..c69d4e2 100644 --- a/chatgpt/chatgpt.go +++ b/chatgpt/chatgpt.go @@ -1,10 +1,11 @@ package chatgpt import ( - "ai" "context" "io" + "github.com/sunshineplan/ai" + "github.com/sashabaranov/go-openai" "golang.org/x/time/rate" ) diff --git a/gemini/gemini.go b/gemini/gemini.go index b829dfe..325f197 100644 --- a/gemini/gemini.go +++ b/gemini/gemini.go @@ -1,11 +1,12 @@ package gemini import ( - "ai" "context" "io" "strings" + "github.com/sunshineplan/ai" + "github.com/google/generative-ai-go/genai" "golang.org/x/time/rate" "google.golang.org/api/iterator" diff --git a/gemini/gemini_test.go b/gemini/gemini_test.go index 065d6a6..8b77d72 100644 --- a/gemini/gemini_test.go +++ b/gemini/gemini_test.go @@ -1,13 +1,14 @@ package gemini import ( - "ai" "context" "fmt" "io" "os" "testing" "time" + + "github.com/sunshineplan/ai" ) func TestGemini(t *testing.T) { diff --git a/go.mod b/go.mod index d308156..31f51e1 100644 --- a/go.mod +++ b/go.mod @@ -1,4 +1,4 @@ -module ai +module github.com/sunshineplan/ai go 1.22