Skip to content

Commit

Permalink
Merge pull request #149 from tryAGI/bot/update-openapi_202502071825
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] authored Feb 7, 2025
2 parents b29a762 + 2381e02 commit 1a49d09
Show file tree
Hide file tree
Showing 566 changed files with 1,412 additions and 70 deletions.
12 changes: 10 additions & 2 deletions src/libs/Cohere/Generated/Cohere.CohereApi.Chat.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -455,7 +455,11 @@ partial void ProcessChatResponseContent(

if (ReadResponseAsString)
{
var __content = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
var __content = await __response.Content.ReadAsStringAsync(
#if NET5_0_OR_GREATER
cancellationToken
#endif
).ConfigureAwait(false);

ProcessResponseContent(
client: HttpClient,
Expand Down Expand Up @@ -509,7 +513,11 @@ partial void ProcessChatResponseContent(
};
}

using var __content = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false);
using var __content = await __response.Content.ReadAsStreamAsync(
#if NET5_0_OR_GREATER
cancellationToken
#endif
).ConfigureAwait(false);

return
await global::Cohere.OneOf<global::Cohere.NonStreamedChatResponse, global::Cohere.StreamedChatResponse?>.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ??
Expand Down
12 changes: 10 additions & 2 deletions src/libs/Cohere/Generated/Cohere.CohereApi.Chatv2.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -445,7 +445,11 @@ partial void ProcessChatv2ResponseContent(

if (ReadResponseAsString)
{
var __content = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
var __content = await __response.Content.ReadAsStringAsync(
#if NET5_0_OR_GREATER
cancellationToken
#endif
).ConfigureAwait(false);

ProcessResponseContent(
client: HttpClient,
Expand Down Expand Up @@ -499,7 +503,11 @@ partial void ProcessChatv2ResponseContent(
};
}

using var __content = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false);
using var __content = await __response.Content.ReadAsStreamAsync(
#if NET5_0_OR_GREATER
cancellationToken
#endif
).ConfigureAwait(false);

return
await global::Cohere.OneOf<global::Cohere.ChatResponse, global::Cohere.StreamedChatResponseV2?>.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ??
Expand Down
12 changes: 10 additions & 2 deletions src/libs/Cohere/Generated/Cohere.CohereApi.CheckAPIKey.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -430,7 +430,11 @@ partial void ProcessCheckAPIKeyResponseContent(

if (ReadResponseAsString)
{
var __content = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
var __content = await __response.Content.ReadAsStringAsync(
#if NET5_0_OR_GREATER
cancellationToken
#endif
).ConfigureAwait(false);

ProcessResponseContent(
client: HttpClient,
Expand Down Expand Up @@ -484,7 +488,11 @@ partial void ProcessCheckAPIKeyResponseContent(
};
}

using var __content = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false);
using var __content = await __response.Content.ReadAsStreamAsync(
#if NET5_0_OR_GREATER
cancellationToken
#endif
).ConfigureAwait(false);

return
await global::Cohere.CheckAPIKeyResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ??
Expand Down
12 changes: 10 additions & 2 deletions src/libs/Cohere/Generated/Cohere.CohereApi.Classify.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -445,7 +445,11 @@ partial void ProcessClassifyResponseContent(

if (ReadResponseAsString)
{
var __content = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
var __content = await __response.Content.ReadAsStringAsync(
#if NET5_0_OR_GREATER
cancellationToken
#endif
).ConfigureAwait(false);

ProcessResponseContent(
client: HttpClient,
Expand Down Expand Up @@ -499,7 +503,11 @@ partial void ProcessClassifyResponseContent(
};
}

using var __content = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false);
using var __content = await __response.Content.ReadAsStreamAsync(
#if NET5_0_OR_GREATER
cancellationToken
#endif
).ConfigureAwait(false);

return
await global::Cohere.ClassifyResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ??
Expand Down
12 changes: 10 additions & 2 deletions src/libs/Cohere/Generated/Cohere.CohereApi.Detokenize.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -444,7 +444,11 @@ partial void ProcessDetokenizeResponseContent(

if (ReadResponseAsString)
{
var __content = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
var __content = await __response.Content.ReadAsStringAsync(
#if NET5_0_OR_GREATER
cancellationToken
#endif
).ConfigureAwait(false);

ProcessResponseContent(
client: HttpClient,
Expand Down Expand Up @@ -498,7 +502,11 @@ partial void ProcessDetokenizeResponseContent(
};
}

using var __content = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false);
using var __content = await __response.Content.ReadAsStreamAsync(
#if NET5_0_OR_GREATER
cancellationToken
#endif
).ConfigureAwait(false);

return
await global::Cohere.DetokenizeResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ??
Expand Down
12 changes: 10 additions & 2 deletions src/libs/Cohere/Generated/Cohere.CohereApi.Embed.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -446,7 +446,11 @@ partial void ProcessEmbedResponseContent(

if (ReadResponseAsString)
{
var __content = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
var __content = await __response.Content.ReadAsStringAsync(
#if NET5_0_OR_GREATER
cancellationToken
#endif
).ConfigureAwait(false);

ProcessResponseContent(
client: HttpClient,
Expand Down Expand Up @@ -500,7 +504,11 @@ partial void ProcessEmbedResponseContent(
};
}

using var __content = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false);
using var __content = await __response.Content.ReadAsStreamAsync(
#if NET5_0_OR_GREATER
cancellationToken
#endif
).ConfigureAwait(false);

return
await global::Cohere.OneOf<global::Cohere.EmbedFloatsResponse, global::Cohere.EmbedByTypeResponse>.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ??
Expand Down
12 changes: 10 additions & 2 deletions src/libs/Cohere/Generated/Cohere.CohereApi.Embedv2.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -446,7 +446,11 @@ partial void ProcessEmbedv2ResponseContent(

if (ReadResponseAsString)
{
var __content = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
var __content = await __response.Content.ReadAsStringAsync(
#if NET5_0_OR_GREATER
cancellationToken
#endif
).ConfigureAwait(false);

ProcessResponseContent(
client: HttpClient,
Expand Down Expand Up @@ -500,7 +504,11 @@ partial void ProcessEmbedv2ResponseContent(
};
}

using var __content = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false);
using var __content = await __response.Content.ReadAsStreamAsync(
#if NET5_0_OR_GREATER
cancellationToken
#endif
).ConfigureAwait(false);

return
await global::Cohere.EmbedByTypeResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ??
Expand Down
12 changes: 10 additions & 2 deletions src/libs/Cohere/Generated/Cohere.CohereApi.Generate.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -447,7 +447,11 @@ partial void ProcessGenerateResponseContent(

if (ReadResponseAsString)
{
var __content = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
var __content = await __response.Content.ReadAsStringAsync(
#if NET5_0_OR_GREATER
cancellationToken
#endif
).ConfigureAwait(false);

ProcessResponseContent(
client: HttpClient,
Expand Down Expand Up @@ -501,7 +505,11 @@ partial void ProcessGenerateResponseContent(
};
}

using var __content = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false);
using var __content = await __response.Content.ReadAsStreamAsync(
#if NET5_0_OR_GREATER
cancellationToken
#endif
).ConfigureAwait(false);

return
await global::Cohere.Generation.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ??
Expand Down
12 changes: 10 additions & 2 deletions src/libs/Cohere/Generated/Cohere.CohereApi.Rerank.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -444,7 +444,11 @@ partial void ProcessRerankResponseContent(

if (ReadResponseAsString)
{
var __content = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
var __content = await __response.Content.ReadAsStringAsync(
#if NET5_0_OR_GREATER
cancellationToken
#endif
).ConfigureAwait(false);

ProcessResponseContent(
client: HttpClient,
Expand Down Expand Up @@ -498,7 +502,11 @@ partial void ProcessRerankResponseContent(
};
}

using var __content = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false);
using var __content = await __response.Content.ReadAsStreamAsync(
#if NET5_0_OR_GREATER
cancellationToken
#endif
).ConfigureAwait(false);

return
await global::Cohere.RerankResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ??
Expand Down
12 changes: 10 additions & 2 deletions src/libs/Cohere/Generated/Cohere.CohereApi.Rerankv2.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -444,7 +444,11 @@ partial void ProcessRerankv2ResponseContent(

if (ReadResponseAsString)
{
var __content = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
var __content = await __response.Content.ReadAsStringAsync(
#if NET5_0_OR_GREATER
cancellationToken
#endif
).ConfigureAwait(false);

ProcessResponseContent(
client: HttpClient,
Expand Down Expand Up @@ -498,7 +502,11 @@ partial void ProcessRerankv2ResponseContent(
};
}

using var __content = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false);
using var __content = await __response.Content.ReadAsStreamAsync(
#if NET5_0_OR_GREATER
cancellationToken
#endif
).ConfigureAwait(false);

return
await global::Cohere.Rerankv2Response.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ??
Expand Down
12 changes: 10 additions & 2 deletions src/libs/Cohere/Generated/Cohere.CohereApi.Summarize.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -447,7 +447,11 @@ partial void ProcessSummarizeResponseContent(

if (ReadResponseAsString)
{
var __content = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
var __content = await __response.Content.ReadAsStringAsync(
#if NET5_0_OR_GREATER
cancellationToken
#endif
).ConfigureAwait(false);

ProcessResponseContent(
client: HttpClient,
Expand Down Expand Up @@ -501,7 +505,11 @@ partial void ProcessSummarizeResponseContent(
};
}

using var __content = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false);
using var __content = await __response.Content.ReadAsStreamAsync(
#if NET5_0_OR_GREATER
cancellationToken
#endif
).ConfigureAwait(false);

return
await global::Cohere.SummarizeResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ??
Expand Down
12 changes: 10 additions & 2 deletions src/libs/Cohere/Generated/Cohere.CohereApi.Tokenize.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -444,7 +444,11 @@ partial void ProcessTokenizeResponseContent(

if (ReadResponseAsString)
{
var __content = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
var __content = await __response.Content.ReadAsStringAsync(
#if NET5_0_OR_GREATER
cancellationToken
#endif
).ConfigureAwait(false);

ProcessResponseContent(
client: HttpClient,
Expand Down Expand Up @@ -498,7 +502,11 @@ partial void ProcessTokenizeResponseContent(
};
}

using var __content = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false);
using var __content = await __response.Content.ReadAsStreamAsync(
#if NET5_0_OR_GREATER
cancellationToken
#endif
).ConfigureAwait(false);

return
await global::Cohere.TokenizeResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ??
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -444,7 +444,11 @@ partial void ProcessCreateConnectorResponseContent(

if (ReadResponseAsString)
{
var __content = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
var __content = await __response.Content.ReadAsStringAsync(
#if NET5_0_OR_GREATER
cancellationToken
#endif
).ConfigureAwait(false);

ProcessResponseContent(
client: HttpClient,
Expand Down Expand Up @@ -498,7 +502,11 @@ partial void ProcessCreateConnectorResponseContent(
};
}

using var __content = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false);
using var __content = await __response.Content.ReadAsStreamAsync(
#if NET5_0_OR_GREATER
cancellationToken
#endif
).ConfigureAwait(false);

return
await global::Cohere.CreateConnectorResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ??
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -436,7 +436,11 @@ partial void ProcessDeleteConnectorResponseContent(

if (ReadResponseAsString)
{
var __content = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
var __content = await __response.Content.ReadAsStringAsync(
#if NET5_0_OR_GREATER
cancellationToken
#endif
).ConfigureAwait(false);

ProcessResponseContent(
client: HttpClient,
Expand Down Expand Up @@ -488,7 +492,11 @@ partial void ProcessDeleteConnectorResponseContent(
};
}

var __content = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
var __content = await __response.Content.ReadAsStringAsync(
#if NET5_0_OR_GREATER
cancellationToken
#endif
).ConfigureAwait(false);

return __content;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -436,7 +436,11 @@ partial void ProcessGetConnectorResponseContent(

if (ReadResponseAsString)
{
var __content = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
var __content = await __response.Content.ReadAsStringAsync(
#if NET5_0_OR_GREATER
cancellationToken
#endif
).ConfigureAwait(false);

ProcessResponseContent(
client: HttpClient,
Expand Down Expand Up @@ -490,7 +494,11 @@ partial void ProcessGetConnectorResponseContent(
};
}

using var __content = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false);
using var __content = await __response.Content.ReadAsStreamAsync(
#if NET5_0_OR_GREATER
cancellationToken
#endif
).ConfigureAwait(false);

return
await global::Cohere.GetConnectorResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ??
Expand Down
Loading

0 comments on commit 1a49d09

Please sign in to comment.