Skip to content

Commit c399617

Browse files
Merge pull request #93 from tryAGI/bot/update-openapi_202410281826
feat:@coderabbitai
2 parents e87c838 + 2a869e3 commit c399617

File tree

3 files changed

+7
-5
lines changed

3 files changed

+7
-5
lines changed

src/libs/Cohere/Generated/Cohere.CohereApi.Chatv2.g.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ partial void ProcessChatv2ResponseContent(
2525

2626
/// <summary>
2727
/// Chat with the model<br/>
28-
/// Generates a message from the model in response to a provided conversation. To learn more about the features of the Chat API follow our [Text Generation guides](https://docs.cohere.com/v2/docs/chat-api).<br/>
28+
/// Generates a text response to a user message and streams it down, token by token. To learn how to use the Chat API with streaming follow our [Text Generation guides](https://docs.cohere.com/v2/docs/chat-api).<br/>
2929
/// Follow the [Migration Guide](https://docs.cohere.com/v2/docs/migrating-v1-to-v2) for instructions on moving from API v1 to API v2.
3030
/// </summary>
3131
/// <param name="xClientName"></param>
@@ -130,7 +130,7 @@ partial void ProcessChatv2ResponseContent(
130130

131131
/// <summary>
132132
/// Chat with the model<br/>
133-
/// Generates a message from the model in response to a provided conversation. To learn more about the features of the Chat API follow our [Text Generation guides](https://docs.cohere.com/v2/docs/chat-api).<br/>
133+
/// Generates a text response to a user message and streams it down, token by token. To learn how to use the Chat API with streaming follow our [Text Generation guides](https://docs.cohere.com/v2/docs/chat-api).<br/>
134134
/// Follow the [Migration Guide](https://docs.cohere.com/v2/docs/migrating-v1-to-v2) for instructions on moving from API v1 to API v2.
135135
/// </summary>
136136
/// <param name="xClientName"></param>

src/libs/Cohere/Generated/Cohere.ICohereApi.Chatv2.g.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ public partial interface ICohereApi
66
{
77
/// <summary>
88
/// Chat with the model<br/>
9-
/// Generates a message from the model in response to a provided conversation. To learn more about the features of the Chat API follow our [Text Generation guides](https://docs.cohere.com/v2/docs/chat-api).<br/>
9+
/// Generates a text response to a user message and streams it down, token by token. To learn how to use the Chat API with streaming follow our [Text Generation guides](https://docs.cohere.com/v2/docs/chat-api).<br/>
1010
/// Follow the [Migration Guide](https://docs.cohere.com/v2/docs/migrating-v1-to-v2) for instructions on moving from API v1 to API v2.
1111
/// </summary>
1212
/// <param name="xClientName"></param>
@@ -20,7 +20,7 @@ public partial interface ICohereApi
2020

2121
/// <summary>
2222
/// Chat with the model<br/>
23-
/// Generates a message from the model in response to a provided conversation. To learn more about the features of the Chat API follow our [Text Generation guides](https://docs.cohere.com/v2/docs/chat-api).<br/>
23+
/// Generates a text response to a user message and streams it down, token by token. To learn how to use the Chat API with streaming follow our [Text Generation guides](https://docs.cohere.com/v2/docs/chat-api).<br/>
2424
/// Follow the [Migration Guide](https://docs.cohere.com/v2/docs/migrating-v1-to-v2) for instructions on moving from API v1 to API v2.
2525
/// </summary>
2626
/// <param name="xClientName"></param>

src/libs/Cohere/openapi.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -274,6 +274,7 @@ paths:
274274
x-fern-audiences:
275275
- public
276276
x-fern-streaming:
277+
stream-description: "Generates a streamed text response to a user message.\n\nTo learn how to use the Chat API and RAG follow our [Text Generation guides](https://docs.cohere.com/docs/chat-api).\n"
277278
stream-condition: $request.stream
278279
response:
279280
required:
@@ -743,7 +744,7 @@ paths:
743744
/v2/chat:
744745
post:
745746
summary: Chat with the model
746-
description: "Generates a message from the model in response to a provided conversation. To learn more about the features of the Chat API follow our [Text Generation guides](https://docs.cohere.com/v2/docs/chat-api).\n\nFollow the [Migration Guide](https://docs.cohere.com/v2/docs/migrating-v1-to-v2) for instructions on moving from API v1 to API v2.\n"
747+
description: "Generates a text response to a user message and streams it down, token by token. To learn how to use the Chat API with streaming follow our [Text Generation guides](https://docs.cohere.com/v2/docs/chat-api).\n\nFollow the [Migration Guide](https://docs.cohere.com/v2/docs/migrating-v1-to-v2) for instructions on moving from API v1 to API v2.\n"
747748
operationId: chatv2
748749
parameters:
749750
- $ref: '#/components/parameters/RequestSource'
@@ -864,6 +865,7 @@ paths:
864865
x-fern-streaming:
865866
format: sse
866867
stream-condition: $request.stream
868+
stream-description: "Generates a text response to a user message. To learn how to use the Chat API and RAG follow our [Text Generation guides](https://docs.cohere.com/v2/docs/chat-api).\n\nFollow the [Migration Guide](https://docs.cohere.com/v2/docs/migrating-v1-to-v2) for instructions on moving from API v1 to API v2.\n"
867869
response:
868870
required:
869871
- id

0 commit comments

Comments
 (0)