sanbo
commited on
Commit
·
10b291b
1
Parent(s):
24d55f2
启动元网址. at 2024-11-14 14:58:31
Browse files
internal/duckgo/request.go
CHANGED
@@ -61,7 +61,8 @@ func postStatus(client httpclient.AuroraHttpClient, proxyUrl string) (*http.Resp
|
|
61 |
header := createHeader()
|
62 |
header.Set("accept", "*/*")
|
63 |
header.Set("x-vqd-accept", "1")
|
64 |
-
response, err := client.Request(httpclient.GET, "https://p.till.us.kg/till/https/duckduckgo.com/duckchat/v1/status", header, nil, nil)
|
|
|
65 |
if err != nil {
|
66 |
return nil, err
|
67 |
}
|
@@ -79,7 +80,8 @@ func POSTconversation(client httpclient.AuroraHttpClient, request duckgotypes.Ap
|
|
79 |
header := createHeader()
|
80 |
header.Set("accept", "text/event-stream")
|
81 |
header.Set("x-vqd-4", token)
|
82 |
-
response, err := client.Request(httpclient.POST, "https://p.till.us.kg/till/https/duckduckgo.com/duckchat/v1/chat", header, nil, bytes.NewBuffer(body_json))
|
|
|
83 |
if err != nil {
|
84 |
return nil, err
|
85 |
}
|
|
|
61 |
header := createHeader()
|
62 |
header.Set("accept", "*/*")
|
63 |
header.Set("x-vqd-accept", "1")
|
64 |
+
// response, err := client.Request(httpclient.GET, "https://p.till.us.kg/till/https/duckduckgo.com/duckchat/v1/status", header, nil, nil)
|
65 |
+
response, err := client.Request(httpclient.GET, "https://duckduckgo.com/duckchat/v1/status", header, nil, nil)
|
66 |
if err != nil {
|
67 |
return nil, err
|
68 |
}
|
|
|
80 |
header := createHeader()
|
81 |
header.Set("accept", "text/event-stream")
|
82 |
header.Set("x-vqd-4", token)
|
83 |
+
// response, err := client.Request(httpclient.POST, "https://p.till.us.kg/till/https/duckduckgo.com/duckchat/v1/chat", header, nil, bytes.NewBuffer(body_json))
|
84 |
+
response, err := client.Request(httpclient.POST, "https://duckduckgo.com/duckchat/v1/chat", header, nil, bytes.NewBuffer(body_json))
|
85 |
if err != nil {
|
86 |
return nil, err
|
87 |
}
|