diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ProjectsDeleteProjectApiKeyCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ProjectsDeleteProjectApiKeyCommandApiCommand.g.cs
index f7c8ea473..0f996d556 100644
--- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ProjectsDeleteProjectApiKeyCommandApiCommand.g.cs
+++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ProjectsDeleteProjectApiKeyCommandApiCommand.g.cs
@@ -44,10 +44,12 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope
public static Command Create(string? commandName = null)
{
var command = new Command(commandName ?? @"delete-project-api-key", @"Delete project API key
-Deletes an API key from the project.
+Deletes an API key from the project, including keys owned by service accounts.
-Returns confirmation of the key deletion, or an error if the key belonged to
-a service account.
+Requires permission to write project API keys. Deleting a service-account key
+does not delete the service account or its other keys.
+
+Returns confirmation of the key deletion.
");
command.Arguments.Add(ProjectId);
command.Arguments.Add(ApiKeyId);
diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IProjectsClient.DeleteProjectApiKey.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IProjectsClient.DeleteProjectApiKey.g.cs
index b523d1139..e7196f099 100644
--- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IProjectsClient.DeleteProjectApiKey.g.cs
+++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IProjectsClient.DeleteProjectApiKey.g.cs
@@ -6,9 +6,10 @@ public partial interface IProjectsClient
{
///
/// Delete project API key
- /// Deletes an API key from the project.
- /// Returns confirmation of the key deletion, or an error if the key belonged to
- /// a service account.
+ /// Deletes an API key from the project, including keys owned by service accounts.
+ /// Requires permission to write project API keys. Deleting a service-account key
+ /// does not delete the service account or its other keys.
+ /// Returns confirmation of the key deletion.
///
///
///
@@ -22,9 +23,10 @@ public partial interface IProjectsClient
global::System.Threading.CancellationToken cancellationToken = default);
///
/// Delete project API key
- /// Deletes an API key from the project.
- /// Returns confirmation of the key deletion, or an error if the key belonged to
- /// a service account.
+ /// Deletes an API key from the project, including keys owned by service accounts.
+ /// Requires permission to write project API keys. Deleting a service-account key
+ /// does not delete the service account or its other keys.
+ /// Returns confirmation of the key deletion.
///
///
///
diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OpenAiClient.CreateanAPIkeyforaserviceaccount.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OpenAiClient.CreateanAPIkeyforaserviceaccount.g.cs
index 5832fbfdf..cb91629db 100644
--- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OpenAiClient.CreateanAPIkeyforaserviceaccount.g.cs
+++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OpenAiClient.CreateanAPIkeyforaserviceaccount.g.cs
@@ -478,43 +478,6 @@ partial void ProcessCreateanAPIkeyforaserviceaccountResponseContent(
h => h.Key,
h => h.Value));
}
- // The service account already has an API key and cannot create another.
- if ((int)__response.StatusCode == 409)
- {
- string? __content_409 = null;
- global::System.Exception? __exception_409 = null;
- global::tryAGI.OpenAI.ErrorResponse? __value_409 = null;
- try
- {
- if (__effectiveReadResponseAsString)
- {
- __content_409 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false);
- __value_409 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_409, JsonSerializerContext);
- }
- else
- {
- __content_409 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false);
-
- __value_409 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_409, JsonSerializerContext);
- }
- }
- catch (global::System.Exception __ex)
- {
- __exception_409 = __ex;
- }
-
-
- throw global::tryAGI.OpenAI.ApiException.Create(
- statusCode: __response.StatusCode,
- message: __content_409 ?? __response.ReasonPhrase ?? string.Empty,
- innerException: __exception_409,
- responseBody: __content_409,
- responseObject: __value_409,
- responseHeaders: global::System.Linq.Enumerable.ToDictionary(
- __response.Headers,
- h => h.Key,
- h => h.Value));
- }
// Too many management requests. Reduce the request rate and try again later.
if ((int)__response.StatusCode == 429)
{
diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectsClient.DeleteProjectApiKey.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectsClient.DeleteProjectApiKey.g.cs
index 7e8880d50..9e5c59260 100644
--- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectsClient.DeleteProjectApiKey.g.cs
+++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectsClient.DeleteProjectApiKey.g.cs
@@ -45,9 +45,10 @@ partial void ProcessDeleteProjectApiKeyResponseContent(
///
/// Delete project API key
- /// Deletes an API key from the project.
- /// Returns confirmation of the key deletion, or an error if the key belonged to
- /// a service account.
+ /// Deletes an API key from the project, including keys owned by service accounts.
+ /// Requires permission to write project API keys. Deleting a service-account key
+ /// does not delete the service account or its other keys.
+ /// Returns confirmation of the key deletion.
///
///
///
@@ -71,9 +72,10 @@ partial void ProcessDeleteProjectApiKeyResponseContent(
}
///
/// Delete project API key
- /// Deletes an API key from the project.
- /// Returns confirmation of the key deletion, or an error if the key belonged to
- /// a service account.
+ /// Deletes an API key from the project, including keys owned by service accounts.
+ /// Requires permission to write project API keys. Deleting a service-account key
+ /// does not delete the service account or its other keys.
+ /// Returns confirmation of the key deletion.
///
///
///
diff --git a/src/libs/tryAGI.OpenAI/openapi.yaml b/src/libs/tryAGI.OpenAI/openapi.yaml
index 74be12eb0..e589da90f 100644
--- a/src/libs/tryAGI.OpenAI/openapi.yaml
+++ b/src/libs/tryAGI.OpenAI/openapi.yaml
@@ -14139,13 +14139,17 @@ paths:
- AdminApiKeyAuth: []
summary: Delete project API key
description: >
- Deletes an API key from the project.
+ Deletes an API key from the project, including keys owned by service
+ accounts.
- Returns confirmation of the key deletion, or an error if the key
- belonged to
+ Requires permission to write project API keys. Deleting a
+ service-account key
- a service account.
+ does not delete the service account or its other keys.
+
+
+ Returns confirmation of the key deletion.
operationId: delete-project-api-key
tags:
- Projects
@@ -29693,12 +29697,6 @@ paths:
application/json:
schema:
$ref: "#/components/schemas/ErrorResponse"
- "409":
- description: The service account already has an API key and cannot create another.
- content:
- application/json:
- schema:
- $ref: "#/components/schemas/ErrorResponse"
"429":
description: Too many management requests. Reduce the request rate and try again
later.