Skip to content

Commit

Permalink
Merge pull request #22 from tryAGI/bot/update-openapi_202408270918
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] authored Aug 27, 2024
2 parents 9d474da + d1078cc commit 26444bf
Show file tree
Hide file tree
Showing 10 changed files with 41 additions and 36 deletions.
8 changes: 5 additions & 3 deletions src/libs/Cohere/Generated/Cohere.CohereApi.Chat.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ partial void ProcessChatResponseContent(
}

return
global::System.Text.Json.JsonSerializer.Deserialize(__content, global::Cohere.SourceGenerationContext.Default.NullableOneOfNonStreamedChatResponseNullableStreamedChatResponse) ??
global::System.Text.Json.JsonSerializer.Deserialize(__content, global::Cohere.SourceGenerationContext.Default.NullableOneOfNonStreamedChatResponseStreamedChatResponse) ??
throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" ");
}

Expand Down Expand Up @@ -160,10 +160,12 @@ partial void ProcessChatResponseContent(
/// <param name="documents">
/// A list of relevant documents that the model can cite to generate a more accurate reply. Each document is a string-string dictionary.<br/>
/// Example:<br/>
/// `[<br/>
/// ```<br/>
/// [<br/>
/// { "title": "Tall penguins", "text": "Emperor penguins are the tallest." },<br/>
/// { "title": "Penguin habitats", "text": "Emperor penguins only live in Antarctica." },<br/>
/// ]`<br/>
/// ]<br/>
/// ```<br/>
/// Keys and values from each document will be serialized to a string and passed to the model. The resulting generation will include citations that reference some of these documents.<br/>
/// Some suggested keys are "text", "author", and "date". For better generation quality, it is recommended to keep the total word count of the strings in the dictionary to under 300 words.<br/>
/// An `id` field (string) can be optionally supplied to identify the document in the citations. This field will not be passed to the model.<br/>
Expand Down
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 @@ -90,7 +90,7 @@ partial void ProcessChatv2ResponseContent(
}

return
global::System.Text.Json.JsonSerializer.Deserialize(__content, global::Cohere.SourceGenerationContext.Default.NullableOneOfNonStreamedChatResponse2NullableStreamedChatResponse2) ??
global::System.Text.Json.JsonSerializer.Deserialize(__content, global::Cohere.SourceGenerationContext.Default.NullableOneOfNonStreamedChatResponse2StreamedChatResponse2) ??
throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" ");
}

Expand Down Expand Up @@ -168,7 +168,7 @@ partial void ProcessChatv2ResponseContent(
float frequencyPenalty = default,
float presencePenalty = default,
float k = 0,
float p = 0.75F,
float p = 0.75,
global::System.Threading.CancellationToken cancellationToken = default)
{
var request = new global::Cohere.Chatv2Request
Expand Down
12 changes: 6 additions & 6 deletions src/libs/Cohere/Generated/Cohere.CohereApi.Generate.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,9 @@ partial void ProcessGenerateResponseContent(

/// <summary>
/// Generate<br/>
/// &gt; 🚧 Warning<br/>
/// &gt; <br/>
/// &gt; This API is marked as "Legacy" and is no longer maintained. Follow the [migration guide](/docs/migrating-from-cogenerate-to-cochat) to start using the Chat API.<br/>
/// &lt;Warning&gt;<br/>
/// This API is marked as "Legacy" and is no longer maintained. Follow the [migration guide](/docs/migrating-from-cogenerate-to-cochat) to start using the Chat API.<br/>
/// &lt;/Warning&gt;<br/>
/// Generates realistic text conditioned on a given input.
/// </summary>
/// <param name="xClientName"></param>
Expand Down Expand Up @@ -106,9 +106,9 @@ partial void ProcessGenerateResponseContent(

/// <summary>
/// Generate<br/>
/// &gt; 🚧 Warning<br/>
/// &gt; <br/>
/// &gt; This API is marked as "Legacy" and is no longer maintained. Follow the [migration guide](/docs/migrating-from-cogenerate-to-cochat) to start using the Chat API.<br/>
/// &lt;Warning&gt;<br/>
/// This API is marked as "Legacy" and is no longer maintained. Follow the [migration guide](/docs/migrating-from-cogenerate-to-cochat) to start using the Chat API.<br/>
/// &lt;/Warning&gt;<br/>
/// Generates realistic text conditioned on a given input.
/// </summary>
/// <param name="xClientName"></param>
Expand Down
12 changes: 6 additions & 6 deletions src/libs/Cohere/Generated/Cohere.CohereApi.Summarize.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,9 @@ partial void ProcessSummarizeResponseContent(

/// <summary>
/// Summarize<br/>
/// &gt; 🚧 Warning<br/>
/// &gt; <br/>
/// &gt; This API is marked as "Legacy" and is no longer maintained. Follow the [migration guide](/docs/migrating-from-cogenerate-to-cochat) to start using the Chat API.<br/>
/// &lt;Warning&gt;<br/>
/// This API is marked as "Legacy" and is no longer maintained. Follow the [migration guide](/docs/migrating-from-cogenerate-to-cochat) to start using the Chat API.<br/>
/// &lt;/Warning&gt;<br/>
/// Generates a summary in English for a given text.
/// </summary>
/// <param name="xClientName"></param>
Expand Down Expand Up @@ -106,9 +106,9 @@ partial void ProcessSummarizeResponseContent(

/// <summary>
/// Summarize<br/>
/// &gt; 🚧 Warning<br/>
/// &gt; <br/>
/// &gt; This API is marked as "Legacy" and is no longer maintained. Follow the [migration guide](/docs/migrating-from-cogenerate-to-cochat) to start using the Chat API.<br/>
/// &lt;Warning&gt;<br/>
/// This API is marked as "Legacy" and is no longer maintained. Follow the [migration guide](/docs/migrating-from-cogenerate-to-cochat) to start using the Chat API.<br/>
/// &lt;/Warning&gt;<br/>
/// Generates a summary in English for a given text.
/// </summary>
/// <param name="xClientName"></param>
Expand Down
6 changes: 4 additions & 2 deletions src/libs/Cohere/Generated/Cohere.Models.ChatRequest.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -89,10 +89,12 @@ public sealed partial class ChatRequest
/// <summary>
/// A list of relevant documents that the model can cite to generate a more accurate reply. Each document is a string-string dictionary.<br/>
/// Example:<br/>
/// `[<br/>
/// ```<br/>
/// [<br/>
/// { "title": "Tall penguins", "text": "Emperor penguins are the tallest." },<br/>
/// { "title": "Penguin habitats", "text": "Emperor penguins only live in Antarctica." },<br/>
/// ]`<br/>
/// ]<br/>
/// ```<br/>
/// Keys and values from each document will be serialized to a string and passed to the model. The resulting generation will include citations that reference some of these documents.<br/>
/// Some suggested keys are "text", "author", and "date". For better generation quality, it is recommended to keep the total word count of the strings in the dictionary to under 300 words.<br/>
/// An `id` field (string) can be optionally supplied to identify the document in the citations. This field will not be passed to the model.<br/>
Expand Down
2 changes: 1 addition & 1 deletion src/libs/Cohere/Generated/Cohere.Models.Chatv2Request.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ public sealed partial class Chatv2Request
/// Default Value: 0.75
/// </summary>
[global::System.Text.Json.Serialization.JsonPropertyName("p")]
public float P { get; set; } = 0.75F;
public float P { get; set; } = 0.75;

/// <summary>
/// Additional properties that are not explicitly defined in the schema
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ public sealed partial class JSONResponseFormat
public required global::Cohere.ResponseFormatType Type { get; set; }

/// <summary>
/// [BETA] A JSON schema object that the output will adhere to. There are some restrictions we have on the schema, refer to [our guide](/docs/structured-outputs-json#schema-constraints) for more information.<br/>
/// A JSON schema object that the output will adhere to. There are some restrictions we have on the schema, refer to [our guide](/docs/structured-outputs-json#schema-constraints) for more information.<br/>
/// Example (required name and age object):<br/>
/// ```json<br/>
/// {<br/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
namespace Cohere
{
/// <summary>
/// [BETA] A JSON schema object that the output will adhere to. There are some restrictions we have on the schema, refer to [our guide](/docs/structured-outputs-json#schema-constraints) for more information.<br/>
/// A JSON schema object that the output will adhere to. There are some restrictions we have on the schema, refer to [our guide](/docs/structured-outputs-json#schema-constraints) for more information.<br/>
/// Example (required name and age object):<br/>
/// ```json<br/>
/// {<br/>
Expand Down
Empty file modified src/libs/Cohere/generate.sh
100644 → 100755
Empty file.
29 changes: 15 additions & 14 deletions src/libs/Cohere/openapi.yaml

Large diffs are not rendered by default.

0 comments on commit 26444bf

Please sign in to comment.