-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtest.http
59 lines (50 loc) · 1.1 KB
/
test.http
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
curl
-X POST https://api.openai.com/v1/chat/completions HTTP/1.1
header Content-Type: application/json
header Authorization: "Bearersk-lw8nLA78oGquqMbegD8dT3BlbkFJybdu1w3FzAl6PqN22BmC"
{
"model":"gpt-3.5-turbo",
"messages":[{
"role": "user",
"content": "你好"
}]
}
###
curl -X POST https://api.chatanywhere.com.cn/v1/chat/completions HTTP/1.1
-H "Content-Type: application/json"
-H "Authorization: Bearer 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"
{
"model": "gpt-3.5-turbo",
"messages": [
{
"role": "user",
"content": "你好"
}
]
}
###
POST https://api.openai.com/v1/chat/completions HTTP/1.1
Content-Type: application/json
Authorization: Bearer
{
"model": "gpt-3.5-turbo",
"messages": [
{
"role": "user",
"content": "你好"
}
]
}
###
POST https://api.chatanywhere.com.cn/chat/completions HTTP/1.1
Content-Type: application/json
Authorization: Bearer sk-7pJKKhJiLTstfIrsMkjIwhh0pgSjMS31ktYJB9mhEp9X6gTY
{
"model": "gpt-3.5-turbo",
"messages": [
{
"role": "user",
"content": "你好"
}
]
}