添加控制台输出
All checks were successful
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 52s
All checks were successful
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 52s
This commit is contained in:
parent
d35dfba895
commit
1585a4491c
3
main.go
3
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 {
|
||||
|
||||
@ -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 {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user