Skip to content

Commit ecfab3f

Browse files
HavenDVgithub-actions[bot]
andauthored
feat: Updated OpenAPI spec (#209)
Co-authored-by: github-actions[bot] <bot@openai.com>
1 parent 11f1083 commit ecfab3f

File tree

80 files changed

+1255
-1214
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

80 files changed

+1255
-1214
lines changed

src/libs/Cohere/Generated/Cohere..JsonSerializerContext.g.cs

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@ namespace Cohere
1515
{
1616
typeof(global::Cohere.JsonConverters.CitationTypeJsonConverter),
1717
typeof(global::Cohere.JsonConverters.CitationTypeNullableJsonConverter),
18-
typeof(global::Cohere.JsonConverters.ChatTextContentTypeJsonConverter),
19-
typeof(global::Cohere.JsonConverters.ChatTextContentTypeNullableJsonConverter),
18+
typeof(global::Cohere.JsonConverters.TextContentTypeJsonConverter),
19+
typeof(global::Cohere.JsonConverters.TextContentTypeNullableJsonConverter),
2020
typeof(global::Cohere.JsonConverters.AssistantMessageContentVariant2ItemDiscriminatorTypeJsonConverter),
2121
typeof(global::Cohere.JsonConverters.AssistantMessageContentVariant2ItemDiscriminatorTypeNullableJsonConverter),
2222
typeof(global::Cohere.JsonConverters.AssistantMessageRoleJsonConverter),
@@ -51,14 +51,14 @@ namespace Cohere
5151
typeof(global::Cohere.JsonConverters.ImageUrlDetailNullableJsonConverter),
5252
typeof(global::Cohere.JsonConverters.ContentTypeJsonConverter),
5353
typeof(global::Cohere.JsonConverters.ContentTypeNullableJsonConverter),
54-
typeof(global::Cohere.JsonConverters.MessageContentDiscriminatorTypeJsonConverter),
55-
typeof(global::Cohere.JsonConverters.MessageContentDiscriminatorTypeNullableJsonConverter),
56-
typeof(global::Cohere.JsonConverters.UserMessageV2RoleJsonConverter),
57-
typeof(global::Cohere.JsonConverters.UserMessageV2RoleNullableJsonConverter),
58-
typeof(global::Cohere.JsonConverters.SystemMessageV2ContentVariant2ItemDiscriminatorTypeJsonConverter),
59-
typeof(global::Cohere.JsonConverters.SystemMessageV2ContentVariant2ItemDiscriminatorTypeNullableJsonConverter),
60-
typeof(global::Cohere.JsonConverters.SystemMessageV2RoleJsonConverter),
61-
typeof(global::Cohere.JsonConverters.SystemMessageV2RoleNullableJsonConverter),
54+
typeof(global::Cohere.JsonConverters.ContentDiscriminatorTypeJsonConverter),
55+
typeof(global::Cohere.JsonConverters.ContentDiscriminatorTypeNullableJsonConverter),
56+
typeof(global::Cohere.JsonConverters.UserMessageRoleJsonConverter),
57+
typeof(global::Cohere.JsonConverters.UserMessageRoleNullableJsonConverter),
58+
typeof(global::Cohere.JsonConverters.SystemMessageContentVariant2ItemDiscriminatorTypeJsonConverter),
59+
typeof(global::Cohere.JsonConverters.SystemMessageContentVariant2ItemDiscriminatorTypeNullableJsonConverter),
60+
typeof(global::Cohere.JsonConverters.SystemMessageRoleJsonConverter),
61+
typeof(global::Cohere.JsonConverters.SystemMessageRoleNullableJsonConverter),
6262
typeof(global::Cohere.JsonConverters.DocumentContentTypeJsonConverter),
6363
typeof(global::Cohere.JsonConverters.DocumentContentTypeNullableJsonConverter),
6464
typeof(global::Cohere.JsonConverters.ToolContentDiscriminatorTypeJsonConverter),
@@ -73,10 +73,6 @@ namespace Cohere
7373
typeof(global::Cohere.JsonConverters.MessageDiscriminatorRoleNullableJsonConverter),
7474
typeof(global::Cohere.JsonConverters.FinishReasonJsonConverter),
7575
typeof(global::Cohere.JsonConverters.FinishReasonNullableJsonConverter),
76-
typeof(global::Cohere.JsonConverters.ResponseFormatTypeJsonConverter),
77-
typeof(global::Cohere.JsonConverters.ResponseFormatTypeNullableJsonConverter),
78-
typeof(global::Cohere.JsonConverters.ResponseFormatTypeV2JsonConverter),
79-
typeof(global::Cohere.JsonConverters.ResponseFormatTypeV2NullableJsonConverter),
8076
typeof(global::Cohere.JsonConverters.CitationOptionsModeJsonConverter),
8177
typeof(global::Cohere.JsonConverters.CitationOptionsModeNullableJsonConverter),
8278
typeof(global::Cohere.JsonConverters.CompatibleEndpointJsonConverter),
@@ -115,6 +111,10 @@ namespace Cohere
115111
typeof(global::Cohere.JsonConverters.GenerateStreamedResponseDiscriminatorEventTypeNullableJsonConverter),
116112
typeof(global::Cohere.JsonConverters.GetClusterJobResponseStatusJsonConverter),
117113
typeof(global::Cohere.JsonConverters.GetClusterJobResponseStatusNullableJsonConverter),
114+
typeof(global::Cohere.JsonConverters.ResponseFormatTypeJsonConverter),
115+
typeof(global::Cohere.JsonConverters.ResponseFormatTypeNullableJsonConverter),
116+
typeof(global::Cohere.JsonConverters.ResponseFormatTypeV2JsonConverter),
117+
typeof(global::Cohere.JsonConverters.ResponseFormatTypeV2NullableJsonConverter),
118118
typeof(global::Cohere.JsonConverters.ReasoningEffortJsonConverter),
119119
typeof(global::Cohere.JsonConverters.ReasoningEffortNullableJsonConverter),
120120
typeof(global::Cohere.JsonConverters.ResponseFormatDiscriminatorTypeJsonConverter),
@@ -172,7 +172,7 @@ namespace Cohere
172172
typeof(global::Cohere.JsonConverters.ChatMessageEndEventJsonConverter),
173173
typeof(global::Cohere.JsonConverters.ChatMessageStartEventJsonConverter),
174174
typeof(global::Cohere.JsonConverters.ChatMessageV2JsonConverter),
175-
typeof(global::Cohere.JsonConverters.MessageContentJsonConverter),
175+
typeof(global::Cohere.JsonConverters.Content2JsonConverter),
176176
typeof(global::Cohere.JsonConverters.ContentVariant2Item2JsonConverter),
177177
typeof(global::Cohere.JsonConverters.ToolContentJsonConverter),
178178
typeof(global::Cohere.JsonConverters.ChatSearchQueriesGenerationEventJsonConverter),
@@ -200,7 +200,7 @@ namespace Cohere
200200
typeof(global::Cohere.JsonConverters.StreamedChatResponseV2JsonConverter),
201201
typeof(global::Cohere.JsonConverters.EmbedResponseJsonConverter),
202202
typeof(global::Cohere.JsonConverters.OneOfJsonConverter<string, global::System.Collections.Generic.IList<global::Cohere.ContentVariant2Item>>),
203-
typeof(global::Cohere.JsonConverters.OneOfJsonConverter<string, global::System.Collections.Generic.IList<global::Cohere.MessageContent>>),
203+
typeof(global::Cohere.JsonConverters.OneOfJsonConverter<string, global::System.Collections.Generic.IList<global::Cohere.Content2>>),
204204
typeof(global::Cohere.JsonConverters.OneOfJsonConverter<string, global::System.Collections.Generic.IList<global::Cohere.ContentVariant2Item2>>),
205205
typeof(global::Cohere.JsonConverters.OneOfJsonConverter<string, global::System.Collections.Generic.IList<global::Cohere.ToolContent>>),
206206
typeof(global::Cohere.JsonConverters.OneOfJsonConverter<string, global::Cohere.RerankDocument>),

src/libs/Cohere/Generated/Cohere.CohereClient.Chat.g.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ partial void ProcessChatResponseContent(
2626
ref string content);
2727

2828
/// <summary>
29-
/// Chat<br/>
29+
/// Chat V1 API<br/>
3030
/// Generates a text response to a user message.<br/>
3131
/// To learn how to use the Chat API and RAG follow our [Text Generation guides](https://docs.cohere.com/docs/chat-api).
3232
/// </summary>
@@ -526,7 +526,7 @@ partial void ProcessChatResponseContent(
526526
}
527527

528528
/// <summary>
529-
/// Chat<br/>
529+
/// Chat V1 API<br/>
530530
/// Generates a text response to a user message.<br/>
531531
/// To learn how to use the Chat API and RAG follow our [Text Generation guides](https://docs.cohere.com/docs/chat-api).
532532
/// </summary>

src/libs/Cohere/Generated/Cohere.CohereClient.Chatv2.g.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ partial void ProcessChatv2ResponseContent(
2424
ref string content);
2525

2626
/// <summary>
27-
/// Chat with the model<br/>
27+
/// Chat V2 API<br/>
2828
/// Generates a text response to a user message and streams it down, token by token. To learn how to use the Chat API with streaming follow our [Text Generation guides](https://docs.cohere.com/v2/docs/chat-api).<br/>
2929
/// Follow the [Migration Guide](https://docs.cohere.com/v2/docs/migrating-v1-to-v2) for instructions on moving from API v1 to API v2.
3030
/// </summary>
@@ -516,7 +516,7 @@ partial void ProcessChatv2ResponseContent(
516516
}
517517

518518
/// <summary>
519-
/// Chat with the model<br/>
519+
/// Chat V2 API<br/>
520520
/// Generates a text response to a user message and streams it down, token by token. To learn how to use the Chat API with streaming follow our [Text Generation guides](https://docs.cohere.com/v2/docs/chat-api).<br/>
521521
/// Follow the [Migration Guide](https://docs.cohere.com/v2/docs/migrating-v1-to-v2) for instructions on moving from API v1 to API v2.
522522
/// </summary>

src/libs/Cohere/Generated/Cohere.CohereClient.Embed.g.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ partial void ProcessEmbedResponseContent(
2424
ref string content);
2525

2626
/// <summary>
27-
/// Embed<br/>
27+
/// Embed V1 API<br/>
2828
/// This endpoint returns text and image embeddings. An embedding is a list of floating point numbers that captures semantic information about the content that it represents.<br/>
2929
/// Embeddings can be used to create classifiers as well as empower semantic search. To learn more about embeddings, see the embedding page.<br/>
3030
/// If you want to learn more how to use the embedding model, have a look at the [Semantic Search Guide](https://docs.cohere.com/docs/semantic-search).
@@ -517,7 +517,7 @@ partial void ProcessEmbedResponseContent(
517517
}
518518

519519
/// <summary>
520-
/// Embed<br/>
520+
/// Embed V1 API<br/>
521521
/// This endpoint returns text and image embeddings. An embedding is a list of floating point numbers that captures semantic information about the content that it represents.<br/>
522522
/// Embeddings can be used to create classifiers as well as empower semantic search. To learn more about embeddings, see the embedding page.<br/>
523523
/// If you want to learn more how to use the embedding model, have a look at the [Semantic Search Guide](https://docs.cohere.com/docs/semantic-search).

src/libs/Cohere/Generated/Cohere.CohereClient.Embedv2.g.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ partial void ProcessEmbedv2ResponseContent(
2424
ref string content);
2525

2626
/// <summary>
27-
/// Embed<br/>
27+
/// Embed V2 API<br/>
2828
/// This endpoint returns text embeddings. An embedding is a list of floating point numbers that captures semantic information about the text that it represents.<br/>
2929
/// Embeddings can be used to create text classifiers as well as empower semantic search. To learn more about embeddings, see the embedding page.<br/>
3030
/// If you want to learn more how to use the embedding model, have a look at the [Semantic Search Guide](https://docs.cohere.com/docs/semantic-search).
@@ -517,7 +517,7 @@ partial void ProcessEmbedv2ResponseContent(
517517
}
518518

519519
/// <summary>
520-
/// Embed<br/>
520+
/// Embed V2 API<br/>
521521
/// This endpoint returns text embeddings. An embedding is a list of floating point numbers that captures semantic information about the text that it represents.<br/>
522522
/// Embeddings can be used to create text classifiers as well as empower semantic search. To learn more about embeddings, see the embedding page.<br/>
523523
/// If you want to learn more how to use the embedding model, have a look at the [Semantic Search Guide](https://docs.cohere.com/docs/semantic-search).

src/libs/Cohere/Generated/Cohere.CohereClient.Rerank.g.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ partial void ProcessRerankResponseContent(
2424
ref string content);
2525

2626
/// <summary>
27-
/// Rerank<br/>
27+
/// Rerank V1 API<br/>
2828
/// This endpoint takes in a query and a list of texts and produces an ordered array with each text assigned a relevance score.
2929
/// </summary>
3030
/// <param name="xClientName"></param>
@@ -515,7 +515,7 @@ partial void ProcessRerankResponseContent(
515515
}
516516

517517
/// <summary>
518-
/// Rerank<br/>
518+
/// Rerank V1 API<br/>
519519
/// This endpoint takes in a query and a list of texts and produces an ordered array with each text assigned a relevance score.
520520
/// </summary>
521521
/// <param name="xClientName"></param>

src/libs/Cohere/Generated/Cohere.CohereClient.Rerankv2.g.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ partial void ProcessRerankv2ResponseContent(
2424
ref string content);
2525

2626
/// <summary>
27-
/// Rerank<br/>
27+
/// Rerank V2 API<br/>
2828
/// This endpoint takes in a query and a list of texts and produces an ordered array with each text assigned a relevance score.
2929
/// </summary>
3030
/// <param name="xClientName"></param>
@@ -515,7 +515,7 @@ partial void ProcessRerankv2ResponseContent(
515515
}
516516

517517
/// <summary>
518-
/// Rerank<br/>
518+
/// Rerank V2 API<br/>
519519
/// This endpoint takes in a query and a list of texts and produces an ordered array with each text assigned a relevance score.
520520
/// </summary>
521521
/// <param name="xClientName"></param>

src/libs/Cohere/Generated/Cohere.ICohereClient.Chat.g.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ namespace Cohere
55
public partial interface ICohereClient
66
{
77
/// <summary>
8-
/// Chat<br/>
8+
/// Chat V1 API<br/>
99
/// Generates a text response to a user message.<br/>
1010
/// To learn how to use the Chat API and RAG follow our [Text Generation guides](https://docs.cohere.com/docs/chat-api).
1111
/// </summary>
@@ -21,7 +21,7 @@ public partial interface ICohereClient
2121
global::System.Threading.CancellationToken cancellationToken = default);
2222

2323
/// <summary>
24-
/// Chat<br/>
24+
/// Chat V1 API<br/>
2525
/// Generates a text response to a user message.<br/>
2626
/// To learn how to use the Chat API and RAG follow our [Text Generation guides](https://docs.cohere.com/docs/chat-api).
2727
/// </summary>

src/libs/Cohere/Generated/Cohere.ICohereClient.Chatv2.g.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ namespace Cohere
55
public partial interface ICohereClient
66
{
77
/// <summary>
8-
/// Chat with the model<br/>
8+
/// Chat V2 API<br/>
99
/// Generates a text response to a user message and streams it down, token by token. To learn how to use the Chat API with streaming follow our [Text Generation guides](https://docs.cohere.com/v2/docs/chat-api).<br/>
1010
/// Follow the [Migration Guide](https://docs.cohere.com/v2/docs/migrating-v1-to-v2) for instructions on moving from API v1 to API v2.
1111
/// </summary>
@@ -19,7 +19,7 @@ public partial interface ICohereClient
1919
global::System.Threading.CancellationToken cancellationToken = default);
2020

2121
/// <summary>
22-
/// Chat with the model<br/>
22+
/// Chat V2 API<br/>
2323
/// Generates a text response to a user message and streams it down, token by token. To learn how to use the Chat API with streaming follow our [Text Generation guides](https://docs.cohere.com/v2/docs/chat-api).<br/>
2424
/// Follow the [Migration Guide](https://docs.cohere.com/v2/docs/migrating-v1-to-v2) for instructions on moving from API v1 to API v2.
2525
/// </summary>

src/libs/Cohere/Generated/Cohere.ICohereClient.Embed.g.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ namespace Cohere
55
public partial interface ICohereClient
66
{
77
/// <summary>
8-
/// Embed<br/>
8+
/// Embed V1 API<br/>
99
/// This endpoint returns text and image embeddings. An embedding is a list of floating point numbers that captures semantic information about the content that it represents.<br/>
1010
/// Embeddings can be used to create classifiers as well as empower semantic search. To learn more about embeddings, see the embedding page.<br/>
1111
/// If you want to learn more how to use the embedding model, have a look at the [Semantic Search Guide](https://docs.cohere.com/docs/semantic-search).
@@ -20,7 +20,7 @@ public partial interface ICohereClient
2020
global::System.Threading.CancellationToken cancellationToken = default);
2121

2222
/// <summary>
23-
/// Embed<br/>
23+
/// Embed V1 API<br/>
2424
/// This endpoint returns text and image embeddings. An embedding is a list of floating point numbers that captures semantic information about the content that it represents.<br/>
2525
/// Embeddings can be used to create classifiers as well as empower semantic search. To learn more about embeddings, see the embedding page.<br/>
2626
/// If you want to learn more how to use the embedding model, have a look at the [Semantic Search Guide](https://docs.cohere.com/docs/semantic-search).

0 commit comments

Comments
 (0)