From 0b6116380e922400b3b37e4a0e468601ac3c0f9f Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Fri, 13 Sep 2024 12:34:51 +0000 Subject: [PATCH] feat: Updated OpenAPI spec --- src/libs/Cohere/Generated/Cohere.CohereApi.Chat.g.cs | 6 +++--- .../Cohere/Generated/Cohere.CohereApi.Embed.g.cs | 2 +- .../Cohere/Generated/Cohere.CohereApi.Generate.g.cs | 2 +- .../Cohere.ConnectorsClient.DeleteConnector.g.cs | 2 +- .../Cohere.ConnectorsClient.GetConnector.g.cs | 2 +- .../Cohere/Generated/Cohere.Models.ChatRequest.g.cs | 2 +- .../Cohere/Generated/Cohere.Models.EmbedRequest.g.cs | 3 +-- .../Generated/Cohere.Models.GenerateRequest.g.cs | 2 +- src/libs/Cohere/openapi.yaml | 12 +++++------- 9 files changed, 15 insertions(+), 18 deletions(-) diff --git a/src/libs/Cohere/Generated/Cohere.CohereApi.Chat.g.cs b/src/libs/Cohere/Generated/Cohere.CohereApi.Chat.g.cs index 70dc5a6..0b1295d 100644 --- a/src/libs/Cohere/Generated/Cohere.CohereApi.Chat.g.cs +++ b/src/libs/Cohere/Generated/Cohere.CohereApi.Chat.g.cs @@ -28,7 +28,7 @@ partial void ProcessChatResponseContent( /// /// Chat
/// 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/docs/chat-api). + /// To learn how to use the Chat API with Streaming and RAG follow our [Text Generation guides](https://docs.cohere.com/docs/chat-api). ///
/// /// @@ -111,7 +111,7 @@ partial void ProcessChatResponseContent( /// /// Chat
/// 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/docs/chat-api). + /// To learn how to use the Chat API with Streaming and RAG follow our [Text Generation guides](https://docs.cohere.com/docs/chat-api). ///
/// /// @@ -157,7 +157,7 @@ partial void ProcessChatResponseContent( /// - AUTO_PRESERVE_ORDER: Azure, AWS Sagemaker/Bedrock, Private Deployments /// /// - /// Accepts `{"id": "web-search"}`, and/or the `"id"` for a custom [connector](https://docs.cohere.com/docs/overview-rag-connectors), if you've [created](https://docs.cohere.com/docs/creating-and-deploying-a-connector) one.
+ /// Accepts `{"id": "web-search"}`, and/or the `"id"` for a custom [connector](https://docs.cohere.com/docs/connectors), if you've [created](https://docs.cohere.com/docs/creating-and-deploying-a-connector) one.
/// When specified, the model's reply will be enriched with information found by querying each of the connectors (RAG).
/// Compatible Deployments: Cohere Platform /// diff --git a/src/libs/Cohere/Generated/Cohere.CohereApi.Embed.g.cs b/src/libs/Cohere/Generated/Cohere.CohereApi.Embed.g.cs index 32537e8..b5a6359 100644 --- a/src/libs/Cohere/Generated/Cohere.CohereApi.Embed.g.cs +++ b/src/libs/Cohere/Generated/Cohere.CohereApi.Embed.g.cs @@ -149,8 +149,8 @@ partial void ProcessEmbedResponseContent( /// The token to cancel the operation with /// public async global::System.Threading.Tasks.Task> EmbedAsync( - global::System.Collections.Generic.IList texts, string? xClientName = default, + global::System.Collections.Generic.IList? texts = default, string? model = default, global::Cohere.EmbedInputType? inputType = default, global::System.Collections.Generic.IList? embeddingTypes = default, diff --git a/src/libs/Cohere/Generated/Cohere.CohereApi.Generate.g.cs b/src/libs/Cohere/Generated/Cohere.CohereApi.Generate.g.cs index 0cfc004..eacb056 100644 --- a/src/libs/Cohere/Generated/Cohere.CohereApi.Generate.g.cs +++ b/src/libs/Cohere/Generated/Cohere.CohereApi.Generate.g.cs @@ -134,7 +134,7 @@ partial void ProcessGenerateResponseContent( /// /// /// The maximum number of tokens the model will generate as part of the response. Note: Setting a low value may result in incomplete generations.
- /// This parameter is off by default, and if it's not specified, the model will continue generating until it emits an EOS completion token.
+ /// This parameter is off by default, and if it's not specified, the model will continue generating until it emits an EOS completion token. See [BPE Tokens](/bpe-tokens-wiki) for more details.
/// Can only be set to `0` if `return_likelihoods` is set to `ALL` to get the likelihood of the prompt. /// /// diff --git a/src/libs/Cohere/Generated/Cohere.ConnectorsClient.DeleteConnector.g.cs b/src/libs/Cohere/Generated/Cohere.ConnectorsClient.DeleteConnector.g.cs index 868b8ce..d37677d 100644 --- a/src/libs/Cohere/Generated/Cohere.ConnectorsClient.DeleteConnector.g.cs +++ b/src/libs/Cohere/Generated/Cohere.ConnectorsClient.DeleteConnector.g.cs @@ -25,7 +25,7 @@ partial void ProcessDeleteConnectorResponseContent( /// /// Delete a Connector
- /// Delete a connector by ID. See ['Connectors'](https://docs.cohere.com/docs/overview-rag-connectors) for more information. + /// Delete a connector by ID. See ['Connectors'](https://docs.cohere.com/docs/connectors) for more information. ///
/// /// diff --git a/src/libs/Cohere/Generated/Cohere.ConnectorsClient.GetConnector.g.cs b/src/libs/Cohere/Generated/Cohere.ConnectorsClient.GetConnector.g.cs index f3ac3a9..91959ed 100644 --- a/src/libs/Cohere/Generated/Cohere.ConnectorsClient.GetConnector.g.cs +++ b/src/libs/Cohere/Generated/Cohere.ConnectorsClient.GetConnector.g.cs @@ -25,7 +25,7 @@ partial void ProcessGetConnectorResponseContent( /// /// Get a Connector
- /// Retrieve a connector by ID. See ['Connectors'](https://docs.cohere.com/docs/overview-rag-connectors) for more information. + /// Retrieve a connector by ID. See ['Connectors'](https://docs.cohere.com/docs/connectors) for more information. ///
/// /// diff --git a/src/libs/Cohere/Generated/Cohere.Models.ChatRequest.g.cs b/src/libs/Cohere/Generated/Cohere.Models.ChatRequest.g.cs index a717310..67006f7 100644 --- a/src/libs/Cohere/Generated/Cohere.Models.ChatRequest.g.cs +++ b/src/libs/Cohere/Generated/Cohere.Models.ChatRequest.g.cs @@ -73,7 +73,7 @@ public sealed partial class ChatRequest public global::Cohere.ChatRequestPromptTruncation? PromptTruncation { get; set; } /// - /// Accepts `{"id": "web-search"}`, and/or the `"id"` for a custom [connector](https://docs.cohere.com/docs/overview-rag-connectors), if you've [created](https://docs.cohere.com/docs/creating-and-deploying-a-connector) one.
+ /// Accepts `{"id": "web-search"}`, and/or the `"id"` for a custom [connector](https://docs.cohere.com/docs/connectors), if you've [created](https://docs.cohere.com/docs/creating-and-deploying-a-connector) one.
/// When specified, the model's reply will be enriched with information found by querying each of the connectors (RAG).
/// Compatible Deployments: Cohere Platform ///
diff --git a/src/libs/Cohere/Generated/Cohere.Models.EmbedRequest.g.cs b/src/libs/Cohere/Generated/Cohere.Models.EmbedRequest.g.cs index 59bef47..3605473 100644 --- a/src/libs/Cohere/Generated/Cohere.Models.EmbedRequest.g.cs +++ b/src/libs/Cohere/Generated/Cohere.Models.EmbedRequest.g.cs @@ -12,8 +12,7 @@ public sealed partial class EmbedRequest /// An array of strings for the model to embed. Maximum number of texts per call is `96`. We recommend reducing the length of each text to be under `512` tokens for optimal quality. /// [global::System.Text.Json.Serialization.JsonPropertyName("texts")] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::System.Collections.Generic.IList Texts { get; set; } + public global::System.Collections.Generic.IList? Texts { get; set; } /// /// Defaults to embed-english-v2.0
diff --git a/src/libs/Cohere/Generated/Cohere.Models.GenerateRequest.g.cs b/src/libs/Cohere/Generated/Cohere.Models.GenerateRequest.g.cs index 9c743e2..a78a296 100644 --- a/src/libs/Cohere/Generated/Cohere.Models.GenerateRequest.g.cs +++ b/src/libs/Cohere/Generated/Cohere.Models.GenerateRequest.g.cs @@ -43,7 +43,7 @@ public sealed partial class GenerateRequest /// /// The maximum number of tokens the model will generate as part of the response. Note: Setting a low value may result in incomplete generations.
- /// This parameter is off by default, and if it's not specified, the model will continue generating until it emits an EOS completion token.
+ /// This parameter is off by default, and if it's not specified, the model will continue generating until it emits an EOS completion token. See [BPE Tokens](/bpe-tokens-wiki) for more details.
/// Can only be set to `0` if `return_likelihoods` is set to `ALL` to get the likelihood of the prompt. ///
[global::System.Text.Json.Serialization.JsonPropertyName("max_tokens")] diff --git a/src/libs/Cohere/openapi.yaml b/src/libs/Cohere/openapi.yaml index 53d6208..215b91f 100644 --- a/src/libs/Cohere/openapi.yaml +++ b/src/libs/Cohere/openapi.yaml @@ -18,7 +18,7 @@ paths: /v1/chat: post: summary: Chat - description: "Generates a text response to a user message.\nTo learn how to use the Chat API and RAG follow our [Text Generation guides](https://docs.cohere.com/docs/chat-api).\n" + description: "Generates a text response to a user message.\nTo learn how to use the Chat API with Streaming and RAG follow our [Text Generation guides](https://docs.cohere.com/docs/chat-api).\n" operationId: chat parameters: - $ref: '#/components/parameters/RequestSource' @@ -87,7 +87,7 @@ paths: type: array items: $ref: '#/components/schemas/ChatConnector' - description: "Accepts `{\"id\": \"web-search\"}`, and/or the `\"id\"` for a custom [connector](https://docs.cohere.com/docs/overview-rag-connectors), if you've [created](https://docs.cohere.com/docs/creating-and-deploying-a-connector) one.\n\nWhen specified, the model's reply will be enriched with information found by querying each of the connectors (RAG).\n\nCompatible Deployments: Cohere Platform\n" + description: "Accepts `{\"id\": \"web-search\"}`, and/or the `\"id\"` for a custom [connector](https://docs.cohere.com/docs/connectors), if you've [created](https://docs.cohere.com/docs/creating-and-deploying-a-connector) one.\n\nWhen specified, the model's reply will be enriched with information found by querying each of the connectors (RAG).\n\nCompatible Deployments: Cohere Platform\n" x-fern-audiences: - public search_queries_only: @@ -1269,7 +1269,7 @@ paths: - public max_tokens: type: integer - description: "The maximum number of tokens the model will generate as part of the response. Note: Setting a low value may result in incomplete generations.\n\nThis parameter is off by default, and if it's not specified, the model will continue generating until it emits an EOS completion token.\n\nCan only be set to `0` if `return_likelihoods` is set to `ALL` to get the likelihood of the prompt.\n" + description: "The maximum number of tokens the model will generate as part of the response. Note: Setting a low value may result in incomplete generations.\n\nThis parameter is off by default, and if it's not specified, the model will continue generating until it emits an EOS completion token. See [BPE Tokens](/bpe-tokens-wiki) for more details.\n\nCan only be set to `0` if `return_likelihoods` is set to `ALL` to get the likelihood of the prompt.\n" writeOnly: true x-fern-audiences: - public @@ -1496,8 +1496,6 @@ paths: content: application/json: schema: - required: - - texts type: object properties: texts: @@ -5556,7 +5554,7 @@ paths: tags: - /connectors summary: Get a Connector - description: 'Retrieve a connector by ID. See [''Connectors''](https://docs.cohere.com/docs/overview-rag-connectors) for more information.' + description: 'Retrieve a connector by ID. See [''Connectors''](https://docs.cohere.com/docs/connectors) for more information.' operationId: get-connector parameters: - name: id @@ -5704,7 +5702,7 @@ paths: tags: - /connectors summary: Delete a Connector - description: 'Delete a connector by ID. See [''Connectors''](https://docs.cohere.com/docs/overview-rag-connectors) for more information.' + description: 'Delete a connector by ID. See [''Connectors''](https://docs.cohere.com/docs/connectors) for more information.' operationId: delete-connector parameters: - name: id