mirror of
https://github.com/Ed1s0nZ/PrivHunterAI.git
synced 2025-09-17 20:41:37 +00:00
Update kimi.go
This commit is contained in:
parent
7fe7ff81f9
commit
837fbc5760
@ -30,7 +30,7 @@ type ChoiceKimi struct {
|
|||||||
Message MessageKimi `json:"message"`
|
Message MessageKimi `json:"message"`
|
||||||
}
|
}
|
||||||
|
|
||||||
func Kimi(respA, respB string) (string, error) {
|
func Kimi(path, respA, respB 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"
|
||||||
|
|
||||||
@ -44,7 +44,7 @@ func Kimi(respA, respB string) (string, error) {
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
Role: "user",
|
Role: "user",
|
||||||
Content: "A:" + respA + "B:" + respB,
|
Content: "path:" + path + "A:" + respA + "B:" + respB,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
Temperature: 0.3,
|
Temperature: 0.3,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user