Skip to content

Commit

Permalink
feat: Updated OpenAPI spec
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] committed Nov 19, 2024
1 parent ffb10e6 commit 9f38dc3
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/libs/Cohere/Generated/Cohere.CohereApi.Chatv2.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -577,7 +577,7 @@ partial void ProcessChatv2ResponseContent(
/// Default Value: 0.75F
/// </param>
/// <param name="logprobs">
/// Whether to return the log probabilities of the generated tokens. Defaults to false.
/// Defaults to `false`. When set to `true`, the log probabilities of the generated tokens will be included in the response.
/// </param>
/// <param name="cancellationToken">The token to cancel the operation with</param>
/// <exception cref="global::System.InvalidOperationException"></exception>
Expand Down
2 changes: 1 addition & 1 deletion src/libs/Cohere/Generated/Cohere.ICohereApi.Chatv2.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ public partial interface ICohereApi
/// Default Value: 0.75F
/// </param>
/// <param name="logprobs">
/// Whether to return the log probabilities of the generated tokens. Defaults to false.
/// Defaults to `false`. When set to `true`, the log probabilities of the generated tokens will be included in the response.
/// </param>
/// <param name="cancellationToken">The token to cancel the operation with</param>
/// <exception cref="global::System.InvalidOperationException"></exception>
Expand Down
4 changes: 2 additions & 2 deletions src/libs/Cohere/Generated/Cohere.Models.Chatv2Request.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ public sealed partial class Chatv2Request
public float? P { get; set; }

/// <summary>
/// Whether to return the log probabilities of the generated tokens. Defaults to false.
/// Defaults to `false`. When set to `true`, the log probabilities of the generated tokens will be included in the response.
/// </summary>
[global::System.Text.Json.Serialization.JsonPropertyName("logprobs")]
public bool? Logprobs { get; set; }
Expand Down Expand Up @@ -209,7 +209,7 @@ public sealed partial class Chatv2Request
/// Default Value: 0.75F
/// </param>
/// <param name="logprobs">
/// Whether to return the log probabilities of the generated tokens. Defaults to false.
/// Defaults to `false`. When set to `true`, the log probabilities of the generated tokens will be included in the response.
/// </param>
[global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers]
public Chatv2Request(
Expand Down
1 change: 1 addition & 0 deletions src/libs/Cohere/Generated/JsonSerializerContext.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -175,6 +175,7 @@ namespace Cohere
typeof(global::Cohere.JsonConverters.OneOfJsonConverter<global::Cohere.NonStreamedChatResponse, global::Cohere.StreamedChatResponse?>),
typeof(global::Cohere.JsonConverters.OneOfJsonConverter<global::Cohere.ChatResponse, global::Cohere.StreamedChatResponseV2?>),
typeof(global::Cohere.JsonConverters.OneOfJsonConverter<global::Cohere.EmbedFloatsResponse, global::Cohere.EmbedByTypeResponse>),
typeof(global::Cohere.JsonConverters.UnixTimestampJsonConverter),
})]

[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Cohere.JsonSerializerContextTypes))]
Expand Down
2 changes: 1 addition & 1 deletion src/libs/Cohere/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -829,7 +829,7 @@ paths:
default: 0.75
logprobs:
type: boolean
description: "Whether to return the log probabilities of the generated tokens. Defaults to false.\n"
description: "Defaults to `false`. When set to `true`, the log probabilities of the generated tokens will be included in the response.\n"
responses:
'200':
description: OK
Expand Down

0 comments on commit 9f38dc3

Please sign in to comment.