Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat:No changes made in the pull request. #93

Merged
merged 1 commit into from
Oct 4, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -20,18 +20,10 @@ public partial interface IProjectsClient
/// <param name="name">
/// The friendly name of the project, this name appears in reports.
/// </param>
/// <param name="appUseCase">
/// A description of your business, project, or use case. [Why we need this information](https://help.openai.com/en/articles/9824607-api-platform-verifications).
/// </param>
/// <param name="businessWebsite">
/// Your business URL, or if you don't have one yet, a URL to your LinkedIn or other social media. [Why we need this information](https://help.openai.com/en/articles/9824607-api-platform-verifications).
/// </param>
/// <param name="cancellationToken">The token to cancel the operation with</param>
/// <exception cref="global::System.InvalidOperationException"></exception>
global::System.Threading.Tasks.Task<global::OpenAI.Project> CreateProjectAsync(
string name,
string? appUseCase = default,
string? businessWebsite = default,
global::System.Threading.CancellationToken cancellationToken = default);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -20,18 +20,10 @@ public partial interface IProjectsClient
/// <param name="name">
/// The updated name of the project, this name appears in reports.
/// </param>
/// <param name="appUseCase">
/// A description of your business, project, or use case. [Why we need this information](https://help.openai.com/en/articles/9824607-api-platform-verifications).
/// </param>
/// <param name="businessWebsite">
/// Your business URL, or if you don't have one yet, a URL to your LinkedIn or other social media. [Why we need this information](https://help.openai.com/en/articles/9824607-api-platform-verifications).
/// </param>
/// <param name="cancellationToken">The token to cancel the operation with</param>
/// <exception cref="global::System.InvalidOperationException"></exception>
global::System.Threading.Tasks.Task<global::OpenAI.Project> ModifyProjectAsync(
string name,
string? appUseCase = default,
string? businessWebsite = default,
global::System.Threading.CancellationToken cancellationToken = default);
}
}
12 changes: 0 additions & 12 deletions src/libs/OpenAI/Generated/OpenAI.Models.Project.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -52,18 +52,6 @@ public sealed partial class Project
[global::System.Text.Json.Serialization.JsonRequired]
public required global::OpenAI.ProjectStatus Status { get; set; }

/// <summary>
/// A description of your business, project, or use case. [Why we need this information](https://help.openai.com/en/articles/9824607-api-platform-verifications).
/// </summary>
[global::System.Text.Json.Serialization.JsonPropertyName("app_use_case")]
public string? AppUseCase { get; set; }

/// <summary>
/// Your business URL, or if you don't have one yet, a URL to your LinkedIn or other social media. [Why we need this information](https://help.openai.com/en/articles/9824607-api-platform-verifications).
/// </summary>
[global::System.Text.Json.Serialization.JsonPropertyName("business_website")]
public string? BusinessWebsite { get; set; }

/// <summary>
/// Additional properties that are not explicitly defined in the schema
/// </summary>
Expand Down
12 changes: 0 additions & 12 deletions src/libs/OpenAI/Generated/OpenAI.Models.ProjectCreateRequest.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -15,18 +15,6 @@ public sealed partial class ProjectCreateRequest
[global::System.Text.Json.Serialization.JsonRequired]
public required string Name { get; set; }

/// <summary>
/// A description of your business, project, or use case. [Why we need this information](https://help.openai.com/en/articles/9824607-api-platform-verifications).
/// </summary>
[global::System.Text.Json.Serialization.JsonPropertyName("app_use_case")]
public string? AppUseCase { get; set; }

/// <summary>
/// Your business URL, or if you don't have one yet, a URL to your LinkedIn or other social media. [Why we need this information](https://help.openai.com/en/articles/9824607-api-platform-verifications).
/// </summary>
[global::System.Text.Json.Serialization.JsonPropertyName("business_website")]
public string? BusinessWebsite { get; set; }

/// <summary>
/// Additional properties that are not explicitly defined in the schema
/// </summary>
Expand Down
12 changes: 0 additions & 12 deletions src/libs/OpenAI/Generated/OpenAI.Models.ProjectUpdateRequest.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -15,18 +15,6 @@ public sealed partial class ProjectUpdateRequest
[global::System.Text.Json.Serialization.JsonRequired]
public required string Name { get; set; }

/// <summary>
/// A description of your business, project, or use case. [Why we need this information](https://help.openai.com/en/articles/9824607-api-platform-verifications).
/// </summary>
[global::System.Text.Json.Serialization.JsonPropertyName("app_use_case")]
public string? AppUseCase { get; set; }

/// <summary>
/// Your business URL, or if you don't have one yet, a URL to your LinkedIn or other social media. [Why we need this information](https://help.openai.com/en/articles/9824607-api-platform-verifications).
/// </summary>
[global::System.Text.Json.Serialization.JsonPropertyName("business_website")]
public string? BusinessWebsite { get; set; }

/// <summary>
/// Additional properties that are not explicitly defined in the schema
/// </summary>
Expand Down
10 changes: 0 additions & 10 deletions src/libs/OpenAI/Generated/OpenAI.ProjectsClient.CreateProject.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -120,25 +120,15 @@ partial void ProcessCreateProjectResponseContent(
/// <param name="name">
/// The friendly name of the project, this name appears in reports.
/// </param>
/// <param name="appUseCase">
/// A description of your business, project, or use case. [Why we need this information](https://help.openai.com/en/articles/9824607-api-platform-verifications).
/// </param>
/// <param name="businessWebsite">
/// Your business URL, or if you don't have one yet, a URL to your LinkedIn or other social media. [Why we need this information](https://help.openai.com/en/articles/9824607-api-platform-verifications).
/// </param>
/// <param name="cancellationToken">The token to cancel the operation with</param>
/// <exception cref="global::System.InvalidOperationException"></exception>
public async global::System.Threading.Tasks.Task<global::OpenAI.Project> CreateProjectAsync(
string name,
string? appUseCase = default,
string? businessWebsite = default,
global::System.Threading.CancellationToken cancellationToken = default)
{
var request = new global::OpenAI.ProjectCreateRequest
{
Name = name,
AppUseCase = appUseCase,
BusinessWebsite = businessWebsite,
};

return await CreateProjectAsync(
Expand Down
10 changes: 0 additions & 10 deletions src/libs/OpenAI/Generated/OpenAI.ProjectsClient.ModifyProject.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -120,25 +120,15 @@ partial void ProcessModifyProjectResponseContent(
/// <param name="name">
/// The updated name of the project, this name appears in reports.
/// </param>
/// <param name="appUseCase">
/// A description of your business, project, or use case. [Why we need this information](https://help.openai.com/en/articles/9824607-api-platform-verifications).
/// </param>
/// <param name="businessWebsite">
/// Your business URL, or if you don't have one yet, a URL to your LinkedIn or other social media. [Why we need this information](https://help.openai.com/en/articles/9824607-api-platform-verifications).
/// </param>
/// <param name="cancellationToken">The token to cancel the operation with</param>
/// <exception cref="global::System.InvalidOperationException"></exception>
public async global::System.Threading.Tasks.Task<global::OpenAI.Project> ModifyProjectAsync(
string name,
string? appUseCase = default,
string? businessWebsite = default,
global::System.Threading.CancellationToken cancellationToken = default)
{
var request = new global::OpenAI.ProjectUpdateRequest
{
Name = name,
AppUseCase = appUseCase,
BusinessWebsite = businessWebsite,
};

return await ModifyProjectAsync(
Expand Down
26 changes: 4 additions & 22 deletions src/libs/OpenAI/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3003,9 +3003,9 @@ paths:
returns: 'The created [Project](/docs/api-reference/projects/object) object.'
examples:
request:
curl: "curl -X POST https://api.openai.com/v1/organization/projects \\\n -H \"Authorization: Bearer $OPENAI_ADMIN_KEY\" \\\n -H \"Content-Type: application/json\" \\\n -d '{\n \"name\": \"Project ABC\",\n \"app_use_case\": \"Your project use case here\",\n \"business_website\": \"https://example.com\"\n }'\n"
curl: "curl -X POST https://api.openai.com/v1/organization/projects \\\n -H \"Authorization: Bearer $OPENAI_ADMIN_KEY\" \\\n -H \"Content-Type: application/json\" \\\n -d '{\n \"name\": \"Project ABC\"\n }'\n"
response:
content: "{\n \"id\": \"proj_abc\",\n \"object\": \"organization.project\",\n \"name\": \"Project ABC\",\n \"created_at\": 1711471533,\n \"archived_at\": null,\n \"status\": \"active\",\n \"app_use_case\": \"Your project use case here\",\n \"business_website\": \"https://example.com\"\n}\n"
content: "{\n \"id\": \"proj_abc\",\n \"object\": \"organization.project\",\n \"name\": \"Project ABC\",\n \"created_at\": 1711471533,\n \"archived_at\": null,\n \"status\": \"active\"\n}\n"
'/organization/projects/{project_id}':
get:
tags:
Expand Down Expand Up @@ -3067,7 +3067,7 @@ paths:
returns: 'The updated [Project](/docs/api-reference/projects/object) object.'
examples:
request:
curl: "curl -X POST https://api.openai.com/v1/organization/projects/proj_abc \\\n -H \"Authorization: Bearer $OPENAI_ADMIN_KEY\" \\\n -H \"Content-Type: application/json\" \\\n -d '{\n \"name\": \"Project DEF\",\n \"app_use_case\": \"Your project use case here\",\n \"business_website\": \"https://example.com\"\n }'\n"
curl: "curl -X POST https://api.openai.com/v1/organization/projects/proj_abc \\\n -H \"Authorization: Bearer $OPENAI_ADMIN_KEY\" \\\n -H \"Content-Type: application/json\" \\\n -d '{\n \"name\": \"Project DEF\"\n }'\n"
'/organization/projects/{project_id}/archive':
post:
tags:
Expand Down Expand Up @@ -10665,16 +10665,10 @@ components:
- archived
type: string
description: '`active` or `archived`'
app_use_case:
type: string
description: 'A description of your business, project, or use case. [Why we need this information](https://help.openai.com/en/articles/9824607-api-platform-verifications).'
business_website:
type: string
description: 'Your business URL, or if you don''t have one yet, a URL to your LinkedIn or other social media. [Why we need this information](https://help.openai.com/en/articles/9824607-api-platform-verifications).'
description: Represents an individual project.
x-oaiMeta:
name: The project object
example: "{\n \"id\": \"proj_abc\",\n \"object\": \"organization.project\",\n \"name\": \"Project example\",\n \"created_at\": 1711471533,\n \"archived_at\": null,\n \"status\": \"active\",\n \"app_use_case\": \"Your project use case here\",\n \"business_website\": \"https://example.com\"\n}\n"
example: "{\n \"id\": \"proj_abc\",\n \"object\": \"organization.project\",\n \"name\": \"Project example\",\n \"created_at\": 1711471533,\n \"archived_at\": null,\n \"status\": \"active\"\n}\n"
ProjectListResponse:
required:
- object
Expand Down Expand Up @@ -10706,12 +10700,6 @@ components:
name:
type: string
description: 'The friendly name of the project, this name appears in reports.'
app_use_case:
type: string
description: 'A description of your business, project, or use case. [Why we need this information](https://help.openai.com/en/articles/9824607-api-platform-verifications).'
business_website:
type: string
description: 'Your business URL, or if you don''t have one yet, a URL to your LinkedIn or other social media. [Why we need this information](https://help.openai.com/en/articles/9824607-api-platform-verifications).'
ProjectUpdateRequest:
required:
- name
Expand All @@ -10720,12 +10708,6 @@ components:
name:
type: string
description: 'The updated name of the project, this name appears in reports.'
app_use_case:
type: string
description: 'A description of your business, project, or use case. [Why we need this information](https://help.openai.com/en/articles/9824607-api-platform-verifications).'
business_website:
type: string
description: 'Your business URL, or if you don''t have one yet, a URL to your LinkedIn or other social media. [Why we need this information](https://help.openai.com/en/articles/9824607-api-platform-verifications).'
DefaultProjectErrorResponse:
required:
- code
Expand Down