mirror of
https://github.com/Ed1s0nZ/PrivHunterAI.git
synced 2025-05-08 19:46:46 +00:00
Update deepseek.go
This commit is contained in:
parent
5309585391
commit
903b4d65ba
@ -80,7 +80,7 @@ func CreateChatCompletion(request ChatCompletionRequestDeepSeek) (*ChatCompletio
|
|||||||
return &response, nil
|
return &response, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
func DeepSeek(path, respA, respB string) (string, error) {
|
func DeepSeek(url, respA, respB string) (string, error) {
|
||||||
// 示例请求
|
// 示例请求
|
||||||
request := ChatCompletionRequestDeepSeek{
|
request := ChatCompletionRequestDeepSeek{
|
||||||
Model: "deepseek-chat", // 根据实际模型名称修改
|
Model: "deepseek-chat", // 根据实际模型名称修改
|
||||||
@ -91,7 +91,7 @@ func DeepSeek(path, respA, respB string) (string, error) {
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
Role: "user",
|
Role: "user",
|
||||||
Content: "path:" + path + "A:" + respA + "B:" + respB,
|
Content: "url:" + url + "A:" + respA + "B:" + respB,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
Temperature: 0.7,
|
Temperature: 0.7,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user