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
In addition to the data sources that Glean has built-in support for, Glean also provides a REST API that enables customers to put arbitrary content in the search index. This is useful, for example, for doing permissions-aware search over content in internal tools that reside on-prem as well as for searching over applications that Glean does not currently support first class. In addition these APIs allow the customer to push organization data (people info, organization structure etc) into Glean.
@@ -1757,9 +1757,9 @@ paths:
1757
1757
post:
1758
1758
tags:
1759
1759
- Chat
1760
-
summary: SDK-only logical operation. HTTP clients must call the base path; the URL fragment is not sent. Create a chat response
1760
+
summary: Create a streaming chat response
1761
1761
description: |
1762
-
SDK-only logical operation. HTTP clients must call the base path; the URL fragment is not sent. Run an assistant turn. The default response is JSON. HTTP clients request server-sent events by setting `stream` to true in the JSON body. An `Accept: text/event-stream` header does not replace `stream`.
1762
+
SDK-only logical operation. HTTP clients must call the base path; the URL fragment is not sent. Run an assistant turn as server-sent events. HTTP clients request this mode by setting `stream` to true in the JSON body.
Copy file name to clipboardExpand all lines: README.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -325,7 +325,7 @@ For more information on obtaining the appropriate token type, please contact you
325
325
### [Chat](docs/sdks/chatsdk/README.md)
326
326
327
327
*[create](docs/sdks/chatsdk/README.md#create) - Create a chat response
328
-
*[create_stream](docs/sdks/chatsdk/README.md#create_stream) - SDK-only logical operation. HTTP clients must call the base path; the URL fragment is not sent. Create a chat response
328
+
*[create_stream](docs/sdks/chatsdk/README.md#create_stream) - Create a streaming chat response
Copy file name to clipboardExpand all lines: docs/sdks/chatsdk/README.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -5,7 +5,7 @@
5
5
### Available Operations
6
6
7
7
*[create](#create) - Create a chat response
8
-
*[create_stream](#create_stream) - SDK-only logical operation. HTTP clients must call the base path; the URL fragment is not sent. Create a chat response
8
+
*[create_stream](#create_stream) - Create a streaming chat response
9
9
10
10
## create
11
11
@@ -54,7 +54,7 @@ with Glean(
54
54
55
55
## create_stream
56
56
57
-
SDK-only logical operation. HTTP clients must call the base path; the URL fragment is not sent. Run an assistant turn. The default response is JSON. HTTP clients request server-sent events by setting `stream` to true in the JSON body. An `Accept: text/event-stream` header does not replace `stream`.
57
+
SDK-only logical operation. HTTP clients must call the base path; the URL fragment is not sent. Run an assistant turn as server-sent events. HTTP clients request this mode by setting `stream` to true in the JSON body.
r"""SDK-only logical operation. HTTP clients must call the base path; the URL fragment is not sent. Create a chat response
277
+
r"""Create a streaming chat response
278
278
279
-
SDK-only logical operation. HTTP clients must call the base path; the URL fragment is not sent. Run an assistant turn. The default response is JSON. HTTP clients request server-sent events by setting `stream` to true in the JSON body. An `Accept: text/event-stream` header does not replace `stream`.
279
+
SDK-only logical operation. HTTP clients must call the base path; the URL fragment is not sent. Run an assistant turn as server-sent events. HTTP clients request this mode by setting `stream` to true in the JSON body.
280
280
281
281
282
282
:param input: Either a plain string (single user turn) or a chronological array of `USER`/`ASSISTANT` messages. The final array message must be `USER`.
r"""SDK-only logical operation. HTTP clients must call the base path; the URL fragment is not sent. Create a chat response
415
+
r"""Create a streaming chat response
416
416
417
-
SDK-only logical operation. HTTP clients must call the base path; the URL fragment is not sent. Run an assistant turn. The default response is JSON. HTTP clients request server-sent events by setting `stream` to true in the JSON body. An `Accept: text/event-stream` header does not replace `stream`.
417
+
SDK-only logical operation. HTTP clients must call the base path; the URL fragment is not sent. Run an assistant turn as server-sent events. HTTP clients request this mode by setting `stream` to true in the JSON body.
418
418
419
419
420
420
:param input: Either a plain string (single user turn) or a chronological array of `USER`/`ASSISTANT` messages. The final array message must be `USER`.
0 commit comments