Skip to content

Commit

Permalink
Merge pull request #93 from tryAGI/bot/update-openapi_202410281826
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] authored Oct 28, 2024
2 parents e87c838 + 2a869e3 commit c399617
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
4 changes: 2 additions & 2 deletions src/libs/Cohere/Generated/Cohere.CohereApi.Chatv2.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ partial void ProcessChatv2ResponseContent(

/// <summary>
/// Chat with the model<br/>
/// 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/>
/// 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/>
/// Follow the [Migration Guide](https://docs.cohere.com/v2/docs/migrating-v1-to-v2) for instructions on moving from API v1 to API v2.
/// </summary>
/// <param name="xClientName"></param>
Expand Down Expand Up @@ -130,7 +130,7 @@ partial void ProcessChatv2ResponseContent(

/// <summary>
/// Chat with the model<br/>
/// 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/>
/// 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/>
/// Follow the [Migration Guide](https://docs.cohere.com/v2/docs/migrating-v1-to-v2) for instructions on moving from API v1 to API v2.
/// </summary>
/// <param name="xClientName"></param>
Expand Down
4 changes: 2 additions & 2 deletions src/libs/Cohere/Generated/Cohere.ICohereApi.Chatv2.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ public partial interface ICohereApi
{
/// <summary>
/// Chat with the model<br/>
/// 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/>
/// 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/>
/// Follow the [Migration Guide](https://docs.cohere.com/v2/docs/migrating-v1-to-v2) for instructions on moving from API v1 to API v2.
/// </summary>
/// <param name="xClientName"></param>
Expand All @@ -20,7 +20,7 @@ public partial interface ICohereApi

/// <summary>
/// Chat with the model<br/>
/// 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/>
/// 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/>
/// Follow the [Migration Guide](https://docs.cohere.com/v2/docs/migrating-v1-to-v2) for instructions on moving from API v1 to API v2.
/// </summary>
/// <param name="xClientName"></param>
Expand Down
4 changes: 3 additions & 1 deletion src/libs/Cohere/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -274,6 +274,7 @@ paths:
x-fern-audiences:
- public
x-fern-streaming:
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"
stream-condition: $request.stream
response:
required:
Expand Down Expand Up @@ -743,7 +744,7 @@ paths:
/v2/chat:
post:
summary: Chat with the model
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"
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"
operationId: chatv2
parameters:
- $ref: '#/components/parameters/RequestSource'
Expand Down Expand Up @@ -864,6 +865,7 @@ paths:
x-fern-streaming:
format: sse
stream-condition: $request.stream
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"
response:
required:
- id
Expand Down

0 comments on commit c399617

Please sign in to comment.