-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathtest.http
More file actions
46 lines (35 loc) · 920 Bytes
/
test.http
File metadata and controls
46 lines (35 loc) · 920 Bytes
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
# setting
@host = 127.0.0.1:8081
@token = Bearer your-api-key-here
#### test model list
GET http://{{host}}/v1/models
Content-Type: application/json
Authorization: {{token}}
####
POST http://{{host}}/v1/chat/completions?stream=true
Content-Type: application/json
Accept: text/event-stream
Authorization: {{token}}
{
"model": "gpt-3.5-turbo",
"messages": [{"role": "user", "content": "Hello!"}],
"stream": true
}
####
POST http://{{host}}/v1/chat/completions?stream=true
Content-Type: application/json
Authorization: {{token}}
{
"model": "gpt-4",
"messages": [{"role": "user", "content": "What is the weather today?"}],
"stream": true
}
### test custom provider
POST http://{{host}}/v1/chat/completions?stream=true&provider=openai
Content-Type: application/json
Authorization: {{token}}
{
"model": "gpt-3.5-turbo",
"messages": [{"role": "user", "content": "Tell me a joke"}],
"stream": true
}