Update kimi.go

This commit is contained in:
公明 2025-03-01 19:29:22 +08:00 committed by GitHub
parent ca0516d0d6
commit cee135d7bf
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -31,7 +31,7 @@ type ChoiceKimi struct {
Message MessageKimi `json:"message"` Message MessageKimi `json:"message"`
} }
func Kimi(url, respA, respB string) (string, error) { func Kimi(reqA, respA, respB, statusB string) (string, error) {
// 设置 API Key 和请求 URL // 设置 API Key 和请求 URL
apiURL := "https://api.moonshot.cn/v1/chat/completions" apiURL := "https://api.moonshot.cn/v1/chat/completions"
@ -45,7 +45,7 @@ func Kimi(url, respA, respB string) (string, error) {
}, },
{ {
Role: "user", Role: "user",
Content: "url:" + url + "A:" + respA + "B:" + respB, Content: "reqA:" + reqA + "\n" + "responseA:" + respA + "\n" + "responseB:" + respB + "\n" + "statusB:" + statusB,
}, },
}, },
Temperature: 0.3, Temperature: 0.3,