Skip to content

Commit 9eea8f7

Browse files
Merge pull request #25 from tryAGI/bot/update-openapi_202411271829
feat:@coderabbitai
2 parents 90ac415 + 45412b5 commit 9eea8f7

28 files changed

+120
-4
lines changed

src/libs/Mistral/Generated/Mistral.AgentsClient.AgentsCompletion.g.cs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,10 @@ partial void ProcessAgentsCompletionResponseContent(
4646
using var __httpRequest = new global::System.Net.Http.HttpRequestMessage(
4747
method: global::System.Net.Http.HttpMethod.Post,
4848
requestUri: new global::System.Uri(__path, global::System.UriKind.RelativeOrAbsolute));
49+
#if NET6_0_OR_GREATER
50+
__httpRequest.Version = global::System.Net.HttpVersion.Version11;
51+
__httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher;
52+
#endif
4953

5054
foreach (var __authorization in Authorizations)
5155
{

src/libs/Mistral/Generated/Mistral.BatchClient.CancelBatchJob.g.cs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,10 @@ partial void ProcessCancelBatchJobResponseContent(
4545
using var __httpRequest = new global::System.Net.Http.HttpRequestMessage(
4646
method: global::System.Net.Http.HttpMethod.Post,
4747
requestUri: new global::System.Uri(__path, global::System.UriKind.RelativeOrAbsolute));
48+
#if NET6_0_OR_GREATER
49+
__httpRequest.Version = global::System.Net.HttpVersion.Version11;
50+
__httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher;
51+
#endif
4852

4953
foreach (var __authorization in Authorizations)
5054
{

src/libs/Mistral/Generated/Mistral.BatchClient.CreateBatchJob.g.cs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,10 @@ partial void ProcessCreateBatchJobResponseContent(
4747
using var __httpRequest = new global::System.Net.Http.HttpRequestMessage(
4848
method: global::System.Net.Http.HttpMethod.Post,
4949
requestUri: new global::System.Uri(__path, global::System.UriKind.RelativeOrAbsolute));
50+
#if NET6_0_OR_GREATER
51+
__httpRequest.Version = global::System.Net.HttpVersion.Version11;
52+
__httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher;
53+
#endif
5054

5155
foreach (var __authorization in Authorizations)
5256
{

src/libs/Mistral/Generated/Mistral.BatchClient.GetBatchJob.g.cs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,10 @@ partial void ProcessGetBatchJobResponseContent(
4545
using var __httpRequest = new global::System.Net.Http.HttpRequestMessage(
4646
method: global::System.Net.Http.HttpMethod.Get,
4747
requestUri: new global::System.Uri(__path, global::System.UriKind.RelativeOrAbsolute));
48+
#if NET6_0_OR_GREATER
49+
__httpRequest.Version = global::System.Net.HttpVersion.Version11;
50+
__httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher;
51+
#endif
4852

4953
foreach (var __authorization in Authorizations)
5054
{

src/libs/Mistral/Generated/Mistral.BatchClient.GetBatchJobs.g.cs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,10 @@ partial void ProcessGetBatchJobsResponseContent(
9090
using var __httpRequest = new global::System.Net.Http.HttpRequestMessage(
9191
method: global::System.Net.Http.HttpMethod.Get,
9292
requestUri: new global::System.Uri(__path, global::System.UriKind.RelativeOrAbsolute));
93+
#if NET6_0_OR_GREATER
94+
__httpRequest.Version = global::System.Net.HttpVersion.Version11;
95+
__httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher;
96+
#endif
9397

9498
foreach (var __authorization in Authorizations)
9599
{

src/libs/Mistral/Generated/Mistral.ChatClient.ChatCompletion.g.cs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,10 @@ partial void ProcessChatCompletionResponseContent(
4646
using var __httpRequest = new global::System.Net.Http.HttpRequestMessage(
4747
method: global::System.Net.Http.HttpMethod.Post,
4848
requestUri: new global::System.Uri(__path, global::System.UriKind.RelativeOrAbsolute));
49+
#if NET6_0_OR_GREATER
50+
__httpRequest.Version = global::System.Net.HttpVersion.Version11;
51+
__httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher;
52+
#endif
4953

5054
foreach (var __authorization in Authorizations)
5155
{

src/libs/Mistral/Generated/Mistral.ClassifiersClient.Moderations.g.cs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,10 @@ partial void ProcessModerationsResponseContent(
4646
using var __httpRequest = new global::System.Net.Http.HttpRequestMessage(
4747
method: global::System.Net.Http.HttpMethod.Post,
4848
requestUri: new global::System.Uri(__path, global::System.UriKind.RelativeOrAbsolute));
49+
#if NET6_0_OR_GREATER
50+
__httpRequest.Version = global::System.Net.HttpVersion.Version11;
51+
__httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher;
52+
#endif
4953

5054
foreach (var __authorization in Authorizations)
5155
{

src/libs/Mistral/Generated/Mistral.ClassifiersClient.ModerationsChat.g.cs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,10 @@ partial void ProcessModerationsChatResponseContent(
4646
using var __httpRequest = new global::System.Net.Http.HttpRequestMessage(
4747
method: global::System.Net.Http.HttpMethod.Post,
4848
requestUri: new global::System.Uri(__path, global::System.UriKind.RelativeOrAbsolute));
49+
#if NET6_0_OR_GREATER
50+
__httpRequest.Version = global::System.Net.HttpVersion.Version11;
51+
__httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher;
52+
#endif
4953

5054
foreach (var __authorization in Authorizations)
5155
{

src/libs/Mistral/Generated/Mistral.EmbeddingsClient.Embeddings.g.cs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,10 @@ partial void ProcessEmbeddingsResponseContent(
4747
using var __httpRequest = new global::System.Net.Http.HttpRequestMessage(
4848
method: global::System.Net.Http.HttpMethod.Post,
4949
requestUri: new global::System.Uri(__path, global::System.UriKind.RelativeOrAbsolute));
50+
#if NET6_0_OR_GREATER
51+
__httpRequest.Version = global::System.Net.HttpVersion.Version11;
52+
__httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher;
53+
#endif
5054

5155
foreach (var __authorization in Authorizations)
5256
{

src/libs/Mistral/Generated/Mistral.FilesClient.DeleteFile.g.cs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,10 @@ partial void ProcessDeleteFileResponseContent(
4545
using var __httpRequest = new global::System.Net.Http.HttpRequestMessage(
4646
method: global::System.Net.Http.HttpMethod.Delete,
4747
requestUri: new global::System.Uri(__path, global::System.UriKind.RelativeOrAbsolute));
48+
#if NET6_0_OR_GREATER
49+
__httpRequest.Version = global::System.Net.HttpVersion.Version11;
50+
__httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher;
51+
#endif
4852

4953
foreach (var __authorization in Authorizations)
5054
{

0 commit comments

Comments
 (0)