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
/// Follow the [Migration Guide](https://docs.cohere.com/v2/docs/migrating-v1-to-v2) for instructions on moving from API v1 to API v2.
514
514
/// </summary>
515
515
/// <param name="xClientName"></param>
516
+
/// <param name="stream">
517
+
/// Defaults to `false`.<br/>
518
+
/// When `true`, the response will be a SSE stream of events. The final event will contain the complete response, and will have an `event_type` of `"stream-end"`.<br/>
519
+
/// Streaming is beneficial for user interfaces that render the contents of the response piece by piece, as it gets generated.<br/>
/// The name of a compatible [Cohere model](https://docs.cohere.com/v2/docs/models) (such as command-r or command-r-plus) or the ID of a [fine-tuned](https://docs.cohere.com/v2/docs/chat-fine-tuning) model.
Copy file name to clipboardExpand all lines: src/libs/Cohere/Generated/Cohere.ICohereApi.Chatv2.g.cs
+7Lines changed: 7 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -24,6 +24,12 @@ public partial interface ICohereApi
24
24
/// Follow the [Migration Guide](https://docs.cohere.com/v2/docs/migrating-v1-to-v2) for instructions on moving from API v1 to API v2.
25
25
/// </summary>
26
26
/// <param name="xClientName"></param>
27
+
/// <param name="stream">
28
+
/// Defaults to `false`.<br/>
29
+
/// When `true`, the response will be a SSE stream of events. The final event will contain the complete response, and will have an `event_type` of `"stream-end"`.<br/>
30
+
/// Streaming is beneficial for user interfaces that render the contents of the response piece by piece, as it gets generated.<br/>
/// The name of a compatible [Cohere model](https://docs.cohere.com/v2/docs/models) (such as command-r or command-r-plus) or the ID of a [fine-tuned](https://docs.cohere.com/v2/docs/chat-fine-tuning) model.
29
35
/// </param>
@@ -104,6 +110,7 @@ public partial interface ICohereApi
Copy file name to clipboardExpand all lines: src/libs/Cohere/Generated/Cohere.Models.Chatv2Request.g.cs
+17Lines changed: 17 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -10,6 +10,15 @@ namespace Cohere
10
10
/// </summary>
11
11
publicsealedpartialclassChatv2Request
12
12
{
13
+
/// <summary>
14
+
/// Defaults to `false`.<br/>
15
+
/// When `true`, the response will be a SSE stream of events. The final event will contain the complete response, and will have an `event_type` of `"stream-end"`.<br/>
16
+
/// Streaming is beneficial for user interfaces that render the contents of the response piece by piece, as it gets generated.<br/>
/// The name of a compatible [Cohere model](https://docs.cohere.com/v2/docs/models) (such as command-r or command-r-plus) or the ID of a [fine-tuned](https://docs.cohere.com/v2/docs/chat-fine-tuning) model.
15
24
/// </summary>
@@ -148,6 +157,12 @@ public sealed partial class Chatv2Request
148
157
/// <summary>
149
158
/// Initializes a new instance of the <see cref="Chatv2Request" /> class.
150
159
/// </summary>
160
+
/// <param name="stream">
161
+
/// Defaults to `false`.<br/>
162
+
/// When `true`, the response will be a SSE stream of events. The final event will contain the complete response, and will have an `event_type` of `"stream-end"`.<br/>
163
+
/// Streaming is beneficial for user interfaces that render the contents of the response piece by piece, as it gets generated.<br/>
/// The name of a compatible [Cohere model](https://docs.cohere.com/v2/docs/models) (such as command-r or command-r-plus) or the ID of a [fine-tuned](https://docs.cohere.com/v2/docs/chat-fine-tuning) model.
153
168
/// </param>
@@ -226,6 +241,7 @@ public sealed partial class Chatv2Request
Copy file name to clipboardExpand all lines: src/libs/Cohere/openapi.yaml
+5Lines changed: 5 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -759,6 +759,11 @@ paths:
759
759
- model
760
760
type: object
761
761
properties:
762
+
stream:
763
+
type: boolean
764
+
description: "Defaults to `false`.\n\nWhen `true`, the response will be a SSE stream of events. The final event will contain the complete response, and will have an `event_type` of `\"stream-end\"`.\n\nStreaming is beneficial for user interfaces that render the contents of the response piece by piece, as it gets generated.\n\nCompatible Deployments: Cohere Platform, Azure, AWS Sagemaker/Bedrock, Private Deployments\n"
765
+
x-fern-audiences:
766
+
- public
762
767
model:
763
768
type: string
764
769
description: 'The name of a compatible [Cohere model](https://docs.cohere.com/v2/docs/models) (such as command-r or command-r-plus) or the ID of a [fine-tuned](https://docs.cohere.com/v2/docs/chat-fine-tuning) model.'
0 commit comments