From 6f74458e9a8714362f29b1c88a7572cb26dfbcfb Mon Sep 17 00:00:00 2001 From: pwh-pwh Date: Mon, 29 Jul 2024 16:11:05 +0800 Subject: [PATCH] =?UTF-8?q?1.=E4=BF=AE=E6=94=B9module=E5=90=8D=E7=A7=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app.go | 6 +++--- go.mod | 2 +- service/chat.go | 2 +- service/echochat.go | 2 +- service/errchat.go | 2 +- service/gptchat.go | 2 +- 6 files changed, 8 insertions(+), 8 deletions(-) diff --git a/app.go b/app.go index d4647f7..8e62fcb 100644 --- a/app.go +++ b/app.go @@ -4,11 +4,11 @@ import ( "context" "encoding/json" "fmt" + "github.com/pwh-pwh/ai-gui/service" + "github.com/pwh-pwh/ai-gui/types" + "github.com/pwh-pwh/ai-gui/utils" "os" "path/filepath" - "wailsdemo/service" - "wailsdemo/types" - "wailsdemo/utils" ) const CONFIG_FILE_NAME = "app.json" diff --git a/go.mod b/go.mod index ebe2b31..07650a2 100644 --- a/go.mod +++ b/go.mod @@ -1,4 +1,4 @@ -module wailsdemo +module github.com/pwh-pwh/ai-gui go 1.21 diff --git a/service/chat.go b/service/chat.go index 93152d0..670c4dd 100644 --- a/service/chat.go +++ b/service/chat.go @@ -1,6 +1,6 @@ package service -import "wailsdemo/types" +import "github.com/pwh-pwh/ai-gui/types" type Chat interface { Dochat([]types.Message) string diff --git a/service/echochat.go b/service/echochat.go index 445866f..c86e79f 100644 --- a/service/echochat.go +++ b/service/echochat.go @@ -1,6 +1,6 @@ package service -import "wailsdemo/types" +import "github.com/pwh-pwh/ai-gui/types" type EchoChat struct { } diff --git a/service/errchat.go b/service/errchat.go index 686d39d..6af3138 100644 --- a/service/errchat.go +++ b/service/errchat.go @@ -1,6 +1,6 @@ package service -import "wailsdemo/types" +import "github.com/pwh-pwh/ai-gui/types" type ErrChat struct { errMsg string diff --git a/service/gptchat.go b/service/gptchat.go index 5c0c254..04d100c 100644 --- a/service/gptchat.go +++ b/service/gptchat.go @@ -3,8 +3,8 @@ package service import ( "context" "errors" + "github.com/pwh-pwh/ai-gui/types" "github.com/sashabaranov/go-openai" - "wailsdemo/types" ) type GptChat struct {