Skip to content

Commit 940fc8b

Browse files
HavenDVgithub-actions[bot]
andauthored
feat: Updated OpenAPI spec (#235)
Co-authored-by: github-actions[bot] <bot@openai.com>
1 parent 61a04c7 commit 940fc8b

File tree

3 files changed

+21
-0
lines changed

3 files changed

+21
-0
lines changed

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

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,12 @@ namespace Cohere
88
/// </summary>
99
public sealed partial class Citation
1010
{
11+
/// <summary>
12+
/// Index of the content block in which this citation appears.
13+
/// </summary>
14+
[global::System.Text.Json.Serialization.JsonPropertyName("content_index")]
15+
public int? ContentIndex { get; set; }
16+
1117
/// <summary>
1218
/// End index of the cited snippet in the original source text.
1319
/// </summary>
@@ -48,6 +54,9 @@ public sealed partial class Citation
4854
/// <summary>
4955
/// Initializes a new instance of the <see cref="Citation" /> class.
5056
/// </summary>
57+
/// <param name="contentIndex">
58+
/// Index of the content block in which this citation appears.
59+
/// </param>
5160
/// <param name="end">
5261
/// End index of the cited snippet in the original source text.
5362
/// </param>
@@ -65,12 +74,14 @@ public sealed partial class Citation
6574
[global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers]
6675
#endif
6776
public Citation(
77+
int? contentIndex,
6878
int? end,
6979
global::System.Collections.Generic.IList<global::Cohere.Source>? sources,
7080
int? start,
7181
string? text,
7282
global::Cohere.CitationType? type)
7383
{
84+
this.ContentIndex = contentIndex;
7485
this.End = end;
7586
this.Sources = sources;
7687
this.Start = start;

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

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,10 @@ public enum CitationType
1515
/// <summary>
1616
///
1717
/// </summary>
18+
THINKINGCONTENT,
19+
/// <summary>
20+
///
21+
/// </summary>
1822
PLAN,
1923
}
2024

@@ -31,6 +35,7 @@ public static string ToValueString(this CitationType value)
3135
return value switch
3236
{
3337
CitationType.TEXTCONTENT => "TEXT_CONTENT",
38+
CitationType.THINKINGCONTENT => "THINKING_CONTENT",
3439
CitationType.PLAN => "PLAN",
3540
_ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null),
3641
};
@@ -43,6 +48,7 @@ public static string ToValueString(this CitationType value)
4348
return value switch
4449
{
4550
"TEXT_CONTENT" => CitationType.TEXTCONTENT,
51+
"THINKING_CONTENT" => CitationType.THINKINGCONTENT,
4652
"PLAN" => CitationType.PLAN,
4753
_ => null,
4854
};

src/libs/Cohere/openapi.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13174,6 +13174,9 @@ components:
1317413174
Citation:
1317513175
type: object
1317613176
properties:
13177+
content_index:
13178+
type: integer
13179+
description: Index of the content block in which this citation appears.
1317713180
end:
1317813181
type: integer
1317913182
description: End index of the cited snippet in the original source text.
@@ -13236,6 +13239,7 @@ components:
1323613239
CitationType:
1323713240
enum:
1323813241
- TEXT_CONTENT
13242+
- THINKING_CONTENT
1323913243
- PLAN
1324013244
type: string
1324113245
description: "The type of citation which indicates what part of the response the citation is for.\n"

0 commit comments

Comments
 (0)