Skip to content
Draft
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
14 changes: 7 additions & 7 deletions .castiron.stats.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
schema_version: 1
generation_id: feaf88e6-0c6a-4d57-95a5-0bcc23d7105c
openapi_spec_hash: ce912f79d7f8cb19a7a515513c214b8a
openapi_transformed_spec_hash: 352b5a7a028f990b6475b6593e381eee
config_hash: dde98d9c41cd6f4163320f92c70f83e6
codegen_sha: 799a1f4d5f6b415088641ca4d3bbb804443ec30e
codegen_hash: 7d4da50897149f4eab2fa63ac3dbc972694c6dfeb79a01531da408010bff5dcd
public_codegen_sha: 4b121f228fc198913ea2a56404f38d8f18ca0e86
generation_id: 811c58b1-fc79-472f-966f-d709343450e8
openapi_spec_hash: 8c73dea75f8570b7ea967542dafa0b0f
openapi_transformed_spec_hash: 19d647b4e088bfa2499083e65eacd54e
config_hash: ad0fbf2fbcf7981fe7a9910664285991
codegen_sha: 252064cd9cef4d4db1f9101d5929573ae9964d7c
codegen_hash: 30b56c8802b480afdea6feade2b7ea1ec31e9ebce33e9b64f0ff4da1154e2a1b
public_codegen_sha: 660cdc509c69dafb285c7c5cba7fd1781276d33c
54 changes: 27 additions & 27 deletions api.md
Original file line number Diff line number Diff line change
Expand Up @@ -451,29 +451,29 @@ Methods:

# Safety

## Alerts
## Cases

Types:

```python
from openai.types.safety import SafetyAlert
from openai.types.safety import SafetyCase
```

Methods:

- <code title="get /safety/alerts/{id}">client.safety.alerts.<a href="./src/openai/resources/safety/alerts.py">retrieve</a>(id) -> <a href="./src/openai/types/safety/safety_alert.py">SafetyAlert</a></code>
- <code title="get /safety/cases/{id}">client.safety.cases.<a href="./src/openai/resources/safety/cases.py">retrieve</a>(id) -> <a href="./src/openai/types/safety/safety_case.py">SafetyCase</a></code>

## Cases
## Alerts

Types:

```python
from openai.types.safety import SafetyCase
from openai.types.safety import SafetyAlert
```

Methods:

- <code title="get /safety/cases/{id}">client.safety.cases.<a href="./src/openai/resources/safety/cases.py">retrieve</a>(id) -> <a href="./src/openai/types/safety/safety_case.py">SafetyCase</a></code>
- <code title="get /safety/alerts/{id}">client.safety.alerts.<a href="./src/openai/resources/safety/alerts.py">retrieve</a>(id) -> <a href="./src/openai/types/safety/safety_alert.py">SafetyAlert</a></code>

# [Webhooks](src/openai/resources/webhooks/api.md)

Expand Down Expand Up @@ -1299,27 +1299,6 @@ Methods:

## Organization

### ExternalStorage

Types:

```python
from openai.types.admin.organization import (
AwsExternalStorageProvider,
AzureExternalStorageProvider,
ExternalStorageConfiguration,
ExternalStorageDeleted,
)
```

Methods:

- <code title="post /organization/external_storage">client.admin.organization.external_storage.<a href="./src/openai/resources/admin/organization/external_storage.py">create</a>(\*\*<a href="src/openai/types/admin/organization/external_storage_create_params.py">params</a>) -> <a href="./src/openai/types/admin/organization/external_storage_configuration.py">ExternalStorageConfiguration</a></code>
- <code title="get /organization/external_storage/{external_storage_id}">client.admin.organization.external_storage.<a href="./src/openai/resources/admin/organization/external_storage.py">retrieve</a>(external_storage_id) -> <a href="./src/openai/types/admin/organization/external_storage_configuration.py">ExternalStorageConfiguration</a></code>
- <code title="get /organization/external_storage">client.admin.organization.external_storage.<a href="./src/openai/resources/admin/organization/external_storage.py">list</a>(\*\*<a href="src/openai/types/admin/organization/external_storage_list_params.py">params</a>) -> <a href="./src/openai/types/admin/organization/external_storage_configuration.py">SyncCursorPage[ExternalStorageConfiguration]</a></code>
- <code title="delete /organization/external_storage/{external_storage_id}">client.admin.organization.external_storage.<a href="./src/openai/resources/admin/organization/external_storage.py">delete</a>(external_storage_id) -> <a href="./src/openai/types/admin/organization/external_storage_deleted.py">ExternalStorageDeleted</a></code>
- <code title="post /organization/external_storage/{external_storage_id}/validate">client.admin.organization.external_storage.<a href="./src/openai/resources/admin/organization/external_storage.py">validate</a>(external_storage_id) -> <a href="./src/openai/types/admin/organization/external_storage_configuration.py">ExternalStorageConfiguration</a></code>

### AuditLogs

Types:
Expand Down Expand Up @@ -1521,6 +1500,27 @@ Methods:
- <code title="get /organization/data_retention">client.admin.organization.data_retention.<a href="./src/openai/resources/admin/organization/data_retention.py">retrieve</a>() -> <a href="./src/openai/types/admin/organization/organization_data_retention.py">OrganizationDataRetention</a></code>
- <code title="post /organization/data_retention">client.admin.organization.data_retention.<a href="./src/openai/resources/admin/organization/data_retention.py">update</a>(\*\*<a href="src/openai/types/admin/organization/data_retention_update_params.py">params</a>) -> <a href="./src/openai/types/admin/organization/organization_data_retention.py">OrganizationDataRetention</a></code>

### ExternalStorage

Types:

```python
from openai.types.admin.organization import (
AwsExternalStorageProvider,
AzureExternalStorageProvider,
ExternalStorageConfiguration,
ExternalStorageDeleted,
)
```

Methods:

- <code title="post /organization/external_storage">client.admin.organization.external_storage.<a href="./src/openai/resources/admin/organization/external_storage.py">create</a>(\*\*<a href="src/openai/types/admin/organization/external_storage_create_params.py">params</a>) -> <a href="./src/openai/types/admin/organization/external_storage_configuration.py">ExternalStorageConfiguration</a></code>
- <code title="get /organization/external_storage/{external_storage_id}">client.admin.organization.external_storage.<a href="./src/openai/resources/admin/organization/external_storage.py">retrieve</a>(external_storage_id) -> <a href="./src/openai/types/admin/organization/external_storage_configuration.py">ExternalStorageConfiguration</a></code>
- <code title="get /organization/external_storage">client.admin.organization.external_storage.<a href="./src/openai/resources/admin/organization/external_storage.py">list</a>(\*\*<a href="src/openai/types/admin/organization/external_storage_list_params.py">params</a>) -> <a href="./src/openai/types/admin/organization/external_storage_configuration.py">SyncCursorPage[ExternalStorageConfiguration]</a></code>
- <code title="delete /organization/external_storage/{external_storage_id}">client.admin.organization.external_storage.<a href="./src/openai/resources/admin/organization/external_storage.py">delete</a>(external_storage_id) -> <a href="./src/openai/types/admin/organization/external_storage_deleted.py">ExternalStorageDeleted</a></code>
- <code title="post /organization/external_storage/{external_storage_id}/validate">client.admin.organization.external_storage.<a href="./src/openai/resources/admin/organization/external_storage.py">validate</a>(external_storage_id) -> <a href="./src/openai/types/admin/organization/external_storage_configuration.py">ExternalStorageConfiguration</a></code>

### SpendLimit

Types:
Expand Down
206 changes: 173 additions & 33 deletions api_reference/openapi.transformed.yml
Original file line number Diff line number Diff line change
Expand Up @@ -601,11 +601,64 @@ paths:
schema:
type: string
format: binary
audio/mpeg:
schema:
type: string
format: binary
audio/aac:
schema:
type: string
format: binary
audio/opus:
schema:
type: string
format: binary
audio/flac:
schema:
type: string
format: binary
audio/pcm:
schema:
type: string
format: binary
audio/wav:
schema:
type: string
format: binary
text/event-stream:
schema:
$ref: '#/components/schemas/CreateSpeechResponseStreamEvent'
'400':
description: Invalid speech request, input, output format, or voice.
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'401':
description: Authentication failed because the API key is missing or revoked, or the client IP is not authorized.
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
text/plain:
schema:
type: string
description: JSON-encoded error text containing an error object and the HTTP status.
'403':
description: Access to a personal API organization is blocked by the organization policy.
content:
text/plain:
schema:
type: string
description: JSON-encoded error text containing an error object and the HTTP status.
'429':
$ref: '#/components/responses/InferenceRateLimited'
'500':
description: The voice or speech audio could not be processed.
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'503':
$ref: '#/components/responses/InferenceServiceUnavailable'
x-oaiMeta:
Expand Down Expand Up @@ -694,7 +747,8 @@ paths:
Transcribes audio into the input language.

Returns a transcription object in `json`, `diarized_json`, or `verbose_json`
format, or a stream of transcript events.
format, plain text in `text`, `srt`, or `vtt` format, or a stream of transcript
events. Supported formats depend on the model.
requestBody:
required: true
content:
Expand All @@ -710,16 +764,58 @@ paths:
anyOf:
- $ref: '#/components/schemas/CreateTranscriptionResponseJson'
- $ref: '#/components/schemas/CreateTranscriptionResponseDiarizedJson'
x-stainless-skip:
- go
- $ref: '#/components/schemas/CreateTranscriptionResponseVerboseJson'
discriminator:
propertyName: task
text/plain:
schema:
type: string
text/event-stream:
schema:
$ref: '#/components/schemas/CreateTranscriptionResponseStreamEvent'
'400':
description: Invalid audio input or request parameters.
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'401':
description: Authentication failed because the API key is missing or revoked, or the client IP is not authorized.
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
text/plain:
schema:
type: string
description: JSON-encoded error text containing an error object and the HTTP status.
'403':
description: Access to a personal API organization is blocked by the organization policy.
content:
text/plain:
schema:
type: string
description: JSON-encoded error text containing an error object and the HTTP status.
'413':
description: The audio request exceeds the supported size limit.
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'429':
$ref: '#/components/responses/InferenceRateLimited'
'500':
description: The audio could not be processed.
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'502':
description: The upstream audio service connection failed.
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'503':
$ref: '#/components/responses/InferenceServiceUnavailable'
x-oaiMeta:
Expand Down Expand Up @@ -1271,8 +1367,52 @@ paths:
- $ref: '#/components/schemas/CreateTranslationResponseVerboseJson'
x-stainless-skip:
- go
text/plain:
schema:
type: string
'400':
description: Invalid audio input or request parameters.
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'401':
description: Authentication failed because the API key is missing or revoked, or the client IP is not authorized.
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
text/plain:
schema:
type: string
description: JSON-encoded error text containing an error object and the HTTP status.
'403':
description: Access to a personal API organization is blocked by the organization policy.
content:
text/plain:
schema:
type: string
description: JSON-encoded error text containing an error object and the HTTP status.
'413':
description: The audio request exceeds the supported size limit.
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'429':
$ref: '#/components/responses/InferenceRateLimited'
'500':
description: The audio could not be processed.
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'502':
description: The upstream audio service connection failed.
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'503':
$ref: '#/components/responses/InferenceServiceUnavailable'
x-oaiMeta:
Expand Down Expand Up @@ -66730,6 +66870,36 @@ components:
"type": "safety.warning_issued",
"data": {"id": "C-abc123"}
}
_MisalignmentErrorType:
anyOf:
- type: string
- type: string
enum:
- potentially_unintended_data_transfer
- potentially_unintended_data_access
- potentially_unintended_destructive_activity
- other
_MisalignmentSteer:
properties:
message:
type: string
description: The public continuation instruction.
type: object
required:
- message
MisalignmentErrorDetailsResource:
properties:
error_type:
$ref: '#/components/schemas/_MisalignmentErrorType'
description: An optional classification; clients must accept additional values.
detailed_explanation:
type: string
description: The public explanation for this block.
steer:
$ref: '#/components/schemas/_MisalignmentSteer'
description: An optional public continuation instruction.
type: object
required: []
ModerationInputType:
type: string
enum:
Expand Down Expand Up @@ -70206,36 +70376,6 @@ components:
- object
- metadata
- created_at
_MisalignmentErrorType:
anyOf:
- type: string
- type: string
enum:
- potentially_unintended_data_transfer
- potentially_unintended_data_access
- potentially_unintended_destructive_activity
- other
_MisalignmentSteer:
properties:
message:
type: string
description: The public continuation instruction.
type: object
required:
- message
MisalignmentErrorDetailsResource:
properties:
error_type:
$ref: '#/components/schemas/_MisalignmentErrorType'
description: An optional classification; clients must accept additional values.
detailed_explanation:
type: string
description: The public explanation for this block.
steer:
$ref: '#/components/schemas/_MisalignmentSteer'
description: An optional public continuation instruction.
type: object
required: []
ImageGenOutputTokensDetails:
properties:
image_tokens:
Expand Down
Loading
Loading