Skip to content

Commit ceb5dd3

Browse files
HavenDVgithub-actions[bot]
andauthored
feat: Updated OpenAPI spec (#244)
Co-authored-by: github-actions[bot] <bot@openai.com>
1 parent 29c08f3 commit ceb5dd3

File tree

3 files changed

+19
-1
lines changed

3 files changed

+19
-1
lines changed

src/libs/Cohere/Generated/Cohere.Models.AssistantMessageV2ContentVariant2ItemDiscriminatorType.g.cs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,10 @@ public enum AssistantMessageV2ContentVariant2ItemDiscriminatorType
1212
///
1313
/// </summary>
1414
Text,
15+
/// <summary>
16+
///
17+
/// </summary>
18+
Thinking,
1519
}
1620

1721
/// <summary>
@@ -27,6 +31,7 @@ public static string ToValueString(this AssistantMessageV2ContentVariant2ItemDis
2731
return value switch
2832
{
2933
AssistantMessageV2ContentVariant2ItemDiscriminatorType.Text => "text",
34+
AssistantMessageV2ContentVariant2ItemDiscriminatorType.Thinking => "thinking",
3035
_ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null),
3136
};
3237
}
@@ -38,6 +43,7 @@ public static string ToValueString(this AssistantMessageV2ContentVariant2ItemDis
3843
return value switch
3944
{
4045
"text" => AssistantMessageV2ContentVariant2ItemDiscriminatorType.Text,
46+
"thinking" => AssistantMessageV2ContentVariant2ItemDiscriminatorType.Thinking,
4147
_ => null,
4248
};
4349
}

src/libs/Cohere/Generated/Cohere.Models.ChatContentDeltaEventVariant2DeltaMessageContent.g.cs

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,12 @@ public sealed partial class ChatContentDeltaEventVariant2DeltaMessageContent
1414
[global::System.Text.Json.Serialization.JsonPropertyName("text")]
1515
public string? Text { get; set; }
1616

17+
/// <summary>
18+
///
19+
/// </summary>
20+
[global::System.Text.Json.Serialization.JsonPropertyName("thinking")]
21+
public string? Thinking { get; set; }
22+
1723
/// <summary>
1824
/// Additional properties that are not explicitly defined in the schema
1925
/// </summary>
@@ -24,13 +30,16 @@ public sealed partial class ChatContentDeltaEventVariant2DeltaMessageContent
2430
/// Initializes a new instance of the <see cref="ChatContentDeltaEventVariant2DeltaMessageContent" /> class.
2531
/// </summary>
2632
/// <param name="text"></param>
33+
/// <param name="thinking"></param>
2734
#if NET7_0_OR_GREATER
2835
[global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers]
2936
#endif
3037
public ChatContentDeltaEventVariant2DeltaMessageContent(
31-
string? text)
38+
string? text,
39+
string? thinking)
3240
{
3341
this.Text = text;
42+
this.Thinking = thinking;
3443
}
3544

3645
/// <summary>

src/libs/Cohere/openapi.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12425,6 +12425,7 @@ components:
1242512425
propertyName: type
1242612426
mapping:
1242712427
text: '#/components/schemas/ChatTextContent'
12428+
thinking: '#/components/schemas/ChatThinkingContent'
1242812429
role:
1242912430
enum:
1243012431
- assistant
@@ -12584,6 +12585,8 @@ components:
1258412585
properties:
1258512586
text:
1258612587
type: string
12588+
thinking:
12589+
type: string
1258712590
x-fern-type-name: ChatContentDeltaEventDeltaMessageContent
1258812591
x-fern-type-name: ChatContentDeltaEventDeltaMessage
1258912592
x-fern-type-name: ChatContentDeltaEventDelta

0 commit comments

Comments
 (0)