From 1585a4491c61f07e4e882f99b6f0ab656c1caacc Mon Sep 17 00:00:00 2001 From: Song367 <601337784@qq.com> Date: Wed, 18 Jun 2025 13:48:16 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E6=8E=A7=E5=88=B6=E5=8F=B0?= =?UTF-8?q?=E8=BE=93=E5=87=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- main.go | 3 +++ service/llm_service.go | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/main.go b/main.go index 8438c63..8fd868d 100644 --- a/main.go +++ b/main.go @@ -1,6 +1,7 @@ package main import ( + "fmt" "log" "os" "strconv" @@ -27,6 +28,8 @@ func main() { FILE_URL: os.Getenv("FILE_URL"), }) + fmt.Println("config: ", llmService) + // Get token configuration from environment variables sigExp, err := strconv.Atoi(os.Getenv("SIG_EXP")) if err != nil { diff --git a/service/llm_service.go b/service/llm_service.go index fd89c3b..4de67bd 100644 --- a/service/llm_service.go +++ b/service/llm_service.go @@ -137,7 +137,7 @@ func (s *LLMService) CallLLMAPI(data map[string]interface{}) (interface{}, error if err != nil { return nil, fmt.Errorf("error marshaling payload: %v", err) } - + fmt.Println(s.config.LLMApiURL + "/chat-messages") req, err := http.NewRequest("POST", s.config.LLMApiURL+"/chat-messages", bytes.NewBuffer(jsonData)) // req, err := http.NewRequest("GET", "http://localhost:8080/stream-text", nil) if err != nil {