Skip to content

Commit

Permalink
Merge pull request #95 from tryAGI/bot/update-openapi_202502071828
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] authored Feb 7, 2025
2 parents 14a1ad7 + c45ca3f commit 064484c
Show file tree
Hide file tree
Showing 89 changed files with 450 additions and 68 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,11 @@ partial void ProcessConvertDocumentFileStudioV1ChatFilesConvertPostResponseConte

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 @@ -174,7 +178,11 @@ partial void ProcessConvertDocumentFileStudioV1ChatFilesConvertPostResponseConte
};
}

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 @@ -129,7 +129,11 @@ partial void ProcessCreatePlanStudioV1AssistantsAssistantIdPlansPostResponseCont

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 @@ -183,7 +187,11 @@ partial void ProcessCreatePlanStudioV1AssistantsAssistantIdPlansPostResponseCont
};
}

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::AI21.Plan.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ??
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,11 @@ partial void ProcessCreateRouteStudioV1AssistantsAssistantIdRoutesPostResponseCo

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 @@ -183,7 +187,11 @@ partial void ProcessCreateRouteStudioV1AssistantsAssistantIdRoutesPostResponseCo
};
}

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::AI21.AssistantRoute.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ??
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,11 @@ partial void ProcessDeleteAssistantStudioV1AssistantsAssistantIdDeleteResponseCo

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 @@ -169,7 +173,11 @@ partial void ProcessDeleteAssistantStudioV1AssistantsAssistantIdDeleteResponseCo
};
}

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::AI21.DeleteAssistantResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ??
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,11 @@ partial void ProcessDeleteOrganizationModelEndpointStudioV1SettingsModelsNameDel

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 @@ -167,7 +171,11 @@ partial void ProcessDeleteOrganizationModelEndpointStudioV1SettingsModelsNameDel
};
}

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 @@ -121,7 +121,11 @@ partial void ProcessDeleteRouteStudioV1AssistantsAssistantIdRoutesRouteIdDeleteR

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 @@ -173,7 +177,11 @@ partial void ProcessDeleteRouteStudioV1AssistantsAssistantIdRoutesRouteIdDeleteR
};
}

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 @@ -115,7 +115,11 @@ partial void ProcessGenerateOrgTokenStudioV1ConnectorsConnectedUsersOrganization

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 @@ -169,7 +173,11 @@ partial void ProcessGenerateOrgTokenStudioV1ConnectorsConnectedUsersOrganization
};
}

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::AI21.ConnectorsToken.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ??
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,11 @@ partial void ProcessGetAssistantStudioV1AssistantsAssistantIdGetResponseContent(

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 @@ -169,7 +173,11 @@ partial void ProcessGetAssistantStudioV1AssistantsAssistantIdGetResponseContent(
};
}

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::AI21.Assistant.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ??
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,11 @@ partial void ProcessGetAssistantsStudioV1AssistantsGetResponseContent(

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 @@ -135,7 +139,11 @@ partial void ProcessGetAssistantsStudioV1AssistantsGetResponseContent(
};
}

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::AI21.ListAssistantsResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ??
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,11 @@ partial void ProcessGetAvailableModelsEndpointStudioV1SettingsModelsAvailableGet

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 @@ -133,7 +137,11 @@ partial void ProcessGetAvailableModelsEndpointStudioV1SettingsModelsAvailableGet
};
}

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 @@ -121,7 +121,11 @@ partial void ProcessGetDataSourceStatusStudioV1ConnectorsConnectedUsersOrganizat

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 @@ -175,7 +179,11 @@ partial void ProcessGetDataSourceStatusStudioV1ConnectorsConnectedUsersOrganizat
};
}

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::AI21.ConnectorsStatus.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ??
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,11 @@ partial void ProcessGetOrgDataSourcesInfoStudioV1ConnectorsConnectedUsersOrganiz

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 @@ -169,7 +173,11 @@ partial void ProcessGetOrgDataSourcesInfoStudioV1ConnectorsConnectedUsersOrganiz
};
}

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::AI21.ConnectorsDataSources.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ??
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,11 @@ partial void ProcessGetOrganizationModelSecretEndpointStudioV1SettingsModelsName

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 @@ -169,7 +173,11 @@ partial void ProcessGetOrganizationModelSecretEndpointStudioV1SettingsModelsName
};
}

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::AI21.SecretResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ??
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,11 @@ partial void ProcessGetOrganizationModelsByOrganizationEndpointStudioV1SettingsM

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 @@ -135,7 +139,11 @@ partial void ProcessGetOrganizationModelsByOrganizationEndpointStudioV1SettingsM
};
}

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::AI21.OrganizationModelsResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ??
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,11 @@ partial void ProcessGetPlanStudioV1AssistantsAssistantIdPlansPlanIdGetResponseCo

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 @@ -175,7 +179,11 @@ partial void ProcessGetPlanStudioV1AssistantsAssistantIdPlansPlanIdGetResponseCo
};
}

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::AI21.Plan.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ??
Expand Down
Loading

0 comments on commit 064484c

Please sign in to comment.