mirror of
https://github.com/Ed1s0nZ/PrivHunterAI.git
synced 2025-09-17 20:41:37 +00:00
Update qianwen.go
This commit is contained in:
parent
141fe723e9
commit
ca0516d0d6
@ -49,7 +49,7 @@ type QWenResponse struct {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// 调用通义千问
|
// 调用通义千问
|
||||||
func Qianwen(url, respA, respB string) (string, error) {
|
func Qianwen(reqA, respA, respB, statusB string) (string, error) {
|
||||||
requestBody := QWenRequest{
|
requestBody := QWenRequest{
|
||||||
Model: "qwen-turbo", // 可根据需要切换模型
|
Model: "qwen-turbo", // 可根据需要切换模型
|
||||||
Input: RequestInput{
|
Input: RequestInput{
|
||||||
@ -60,7 +60,7 @@ func Qianwen(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,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
Loading…
x
Reference in New Issue
Block a user