You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/API/SEARCH.md
+27-2Lines changed: 27 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -32,7 +32,8 @@ The API accepts a JSON object in the request body, where you define the focus mo
32
32
"history": [
33
33
["human", "Hi, how are you?"],
34
34
["assistant", "I am doing well, how can I help you today?"]
35
-
]
35
+
],
36
+
"stream": false
36
37
}
37
38
```
38
39
@@ -71,11 +72,13 @@ The API accepts a JSON object in the request body, where you define the focus mo
71
72
]
72
73
```
73
74
75
+
-**`stream`** (boolean, optional): When set to `true`, enables streaming responses. Default is `false`.
76
+
74
77
### Response
75
78
76
79
The response from the API includes both the final message and the sources used to generate that message.
77
80
78
-
#### Example Response
81
+
#### Standard Response (stream: false)
79
82
80
83
```json
81
84
{
@@ -100,6 +103,28 @@ The response from the API includes both the final message and the sources used t
100
103
}
101
104
```
102
105
106
+
#### Streaming Response (stream: true)
107
+
108
+
When streaming is enabled, the API returns a stream of newline-delimited JSON objects. Each line contains a complete, valid JSON object. The response has Content-Type: application/json.
0 commit comments