添加控制台输出
All checks were successful
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 52s

This commit is contained in:
Song367 2025-06-18 13:48:16 +08:00
parent d35dfba895
commit 1585a4491c
2 changed files with 4 additions and 1 deletions

View File

@ -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 {

View File

@ -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 {