-
-
Notifications
You must be signed in to change notification settings - Fork 208
Expand file tree
/
Copy pathstream-test.http
More file actions
47 lines (40 loc) · 859 Bytes
/
stream-test.http
File metadata and controls
47 lines (40 loc) · 859 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
47
### Test non-streaming chat completion
POST http://localhost:8787/v1/chat/completions
Content-Type: application/json
{
"model": "gemini-2.5-flash",
"messages": [
{
"role": "user",
"content": "Hello! How are you?"
}
],
"stream": false
}
###
### Test streaming chat completion (default behavior)
POST http://localhost:8787/v1/chat/completions
Content-Type: application/json
{
"model": "gemini-2.5-flash",
"messages": [
{
"role": "user",
"content": "Hello! How are you?"
}
],
"stream": true
}
###
### Test streaming chat completion (without explicit stream parameter - should default to true)
POST http://localhost:8787/v1/chat/completions
Content-Type: application/json
{
"model": "gemini-2.5-flash",
"messages": [
{
"role": "user",
"content": "Hello! How are you?"
}
]
}