mirror of
https://github.com/wassname/openrouter-python-sdk-retry-errors.git
synced 2026-07-29 11:23:49 +08:00
chore: clean up removed docs and update generated SDK files
Remove obsolete component documentation and update speakeasy-generated files to match the latest OpenAPI spec regeneration.
This commit is contained in:
@@ -1,9 +1,4 @@
|
|||||||
|
|
||||||
<div align="center">
|
|
||||||
<a href="https://codespaces.new/OpenRouterTeam/python-sdk.git/tree/main"><img src="https://github.com/codespaces/badge.svg" /></a>
|
|
||||||
</div>
|
|
||||||
<br>
|
|
||||||
|
|
||||||
> **Remember to shutdown a GitHub Codespace when it is not in use!**
|
> **Remember to shutdown a GitHub Codespace when it is not in use!**
|
||||||
|
|
||||||
# Dev Containers Quick Start
|
# Dev Containers Quick Start
|
||||||
|
|||||||
+119
-1125
File diff suppressed because it is too large
Load Diff
+1
-1
@@ -32,7 +32,7 @@ generation:
|
|||||||
skipResponseBodyAssertions: false
|
skipResponseBodyAssertions: false
|
||||||
preApplyUnionDiscriminators: true
|
preApplyUnionDiscriminators: true
|
||||||
python:
|
python:
|
||||||
version: 0.8.0
|
version: 0.8.1
|
||||||
additionalDependencies:
|
additionalDependencies:
|
||||||
dev: {}
|
dev: {}
|
||||||
main: {}
|
main: {}
|
||||||
|
|||||||
+41
-134
@@ -3826,6 +3826,40 @@ components:
|
|||||||
error:
|
error:
|
||||||
code: 408
|
code: 408
|
||||||
message: Operation timed out. Please try again later.
|
message: Operation timed out. Please try again later.
|
||||||
|
GoneResponseErrorData:
|
||||||
|
type: object
|
||||||
|
properties:
|
||||||
|
code:
|
||||||
|
type: integer
|
||||||
|
message:
|
||||||
|
type: string
|
||||||
|
metadata:
|
||||||
|
type: object
|
||||||
|
nullable: true
|
||||||
|
additionalProperties:
|
||||||
|
nullable: true
|
||||||
|
required:
|
||||||
|
- code
|
||||||
|
- message
|
||||||
|
description: Error data for GoneResponse
|
||||||
|
example:
|
||||||
|
code: 410
|
||||||
|
message: The Coinbase APIs used by this endpoint have been deprecated, so the Coinbase Commerce credits API has been removed. Use the web credits purchase flow instead.
|
||||||
|
GoneResponse:
|
||||||
|
type: object
|
||||||
|
properties:
|
||||||
|
error:
|
||||||
|
$ref: '#/components/schemas/GoneResponseErrorData'
|
||||||
|
user_id:
|
||||||
|
type: string
|
||||||
|
nullable: true
|
||||||
|
required:
|
||||||
|
- error
|
||||||
|
description: Gone - Endpoint has been permanently removed or deprecated
|
||||||
|
example:
|
||||||
|
error:
|
||||||
|
code: 410
|
||||||
|
message: The Coinbase APIs used by this endpoint have been deprecated, so the Coinbase Commerce credits API has been removed. Use the web credits purchase flow instead.
|
||||||
PayloadTooLargeResponseErrorData:
|
PayloadTooLargeResponseErrorData:
|
||||||
type: object
|
type: object
|
||||||
properties:
|
properties:
|
||||||
@@ -13332,28 +13366,6 @@ components:
|
|||||||
model: openai/gpt-4
|
model: openai/gpt-4
|
||||||
temperature: 0.7
|
temperature: 0.7
|
||||||
max_tokens: 150
|
max_tokens: 150
|
||||||
CreateChargeRequest:
|
|
||||||
type: object
|
|
||||||
properties:
|
|
||||||
amount:
|
|
||||||
type: number
|
|
||||||
sender:
|
|
||||||
type: string
|
|
||||||
chain_id:
|
|
||||||
type: integer
|
|
||||||
enum:
|
|
||||||
- 1
|
|
||||||
- 137
|
|
||||||
- 8453
|
|
||||||
required:
|
|
||||||
- amount
|
|
||||||
- sender
|
|
||||||
- chain_id
|
|
||||||
description: Create a Coinbase charge for crypto payment
|
|
||||||
example:
|
|
||||||
amount: 100
|
|
||||||
sender: '0x1234567890123456789012345678901234567890'
|
|
||||||
chain_id: 1
|
|
||||||
ProviderPreferences:
|
ProviderPreferences:
|
||||||
type: object
|
type: object
|
||||||
properties:
|
properties:
|
||||||
@@ -14880,126 +14892,21 @@ paths:
|
|||||||
$ref: '#/components/schemas/InternalServerResponse'
|
$ref: '#/components/schemas/InternalServerResponse'
|
||||||
/credits/coinbase:
|
/credits/coinbase:
|
||||||
post:
|
post:
|
||||||
security:
|
security: []
|
||||||
- bearer: []
|
|
||||||
x-speakeasy-name-override: createCoinbaseCharge
|
x-speakeasy-name-override: createCoinbaseCharge
|
||||||
|
deprecated: true
|
||||||
tags:
|
tags:
|
||||||
- Credits
|
- Credits
|
||||||
summary: Create a Coinbase charge for crypto payment
|
summary: Deprecated Coinbase Commerce charge endpoint
|
||||||
operationId: createCoinbaseCharge
|
operationId: createCoinbaseCharge
|
||||||
description: Create a Coinbase charge for crypto payment
|
description: Deprecated. The Coinbase APIs used by this endpoint have been deprecated, so Coinbase Commerce charges have been removed. Use the web credits purchase flow instead.
|
||||||
requestBody:
|
|
||||||
content:
|
|
||||||
application/json:
|
|
||||||
schema:
|
|
||||||
$ref: '#/components/schemas/CreateChargeRequest'
|
|
||||||
required: true
|
|
||||||
responses:
|
responses:
|
||||||
'200':
|
'410':
|
||||||
description: Returns the calldata to fulfill the transaction
|
description: Gone - Coinbase Commerce charge creation has been removed
|
||||||
content:
|
content:
|
||||||
application/json:
|
application/json:
|
||||||
schema:
|
schema:
|
||||||
type: object
|
$ref: '#/components/schemas/GoneResponse'
|
||||||
properties:
|
|
||||||
data:
|
|
||||||
type: object
|
|
||||||
properties:
|
|
||||||
id:
|
|
||||||
type: string
|
|
||||||
created_at:
|
|
||||||
type: string
|
|
||||||
expires_at:
|
|
||||||
type: string
|
|
||||||
web3_data:
|
|
||||||
type: object
|
|
||||||
properties:
|
|
||||||
transfer_intent:
|
|
||||||
type: object
|
|
||||||
properties:
|
|
||||||
call_data:
|
|
||||||
type: object
|
|
||||||
properties:
|
|
||||||
deadline:
|
|
||||||
type: string
|
|
||||||
fee_amount:
|
|
||||||
type: string
|
|
||||||
id:
|
|
||||||
type: string
|
|
||||||
operator:
|
|
||||||
type: string
|
|
||||||
prefix:
|
|
||||||
type: string
|
|
||||||
recipient:
|
|
||||||
type: string
|
|
||||||
recipient_amount:
|
|
||||||
type: string
|
|
||||||
recipient_currency:
|
|
||||||
type: string
|
|
||||||
refund_destination:
|
|
||||||
type: string
|
|
||||||
signature:
|
|
||||||
type: string
|
|
||||||
required:
|
|
||||||
- deadline
|
|
||||||
- fee_amount
|
|
||||||
- id
|
|
||||||
- operator
|
|
||||||
- prefix
|
|
||||||
- recipient
|
|
||||||
- recipient_amount
|
|
||||||
- recipient_currency
|
|
||||||
- refund_destination
|
|
||||||
- signature
|
|
||||||
metadata:
|
|
||||||
type: object
|
|
||||||
properties:
|
|
||||||
chain_id:
|
|
||||||
type: number
|
|
||||||
contract_address:
|
|
||||||
type: string
|
|
||||||
sender:
|
|
||||||
type: string
|
|
||||||
required:
|
|
||||||
- chain_id
|
|
||||||
- contract_address
|
|
||||||
- sender
|
|
||||||
required:
|
|
||||||
- call_data
|
|
||||||
- metadata
|
|
||||||
required:
|
|
||||||
- transfer_intent
|
|
||||||
required:
|
|
||||||
- id
|
|
||||||
- created_at
|
|
||||||
- expires_at
|
|
||||||
- web3_data
|
|
||||||
required:
|
|
||||||
- data
|
|
||||||
'400':
|
|
||||||
description: Bad Request - Invalid credit amount or request body
|
|
||||||
content:
|
|
||||||
application/json:
|
|
||||||
schema:
|
|
||||||
$ref: '#/components/schemas/BadRequestResponse'
|
|
||||||
'401':
|
|
||||||
description: Unauthorized - Authentication required or invalid credentials
|
|
||||||
content:
|
|
||||||
application/json:
|
|
||||||
schema:
|
|
||||||
$ref: '#/components/schemas/UnauthorizedResponse'
|
|
||||||
'429':
|
|
||||||
description: Too Many Requests - Rate limit exceeded
|
|
||||||
content:
|
|
||||||
application/json:
|
|
||||||
schema:
|
|
||||||
$ref: '#/components/schemas/TooManyRequestsResponse'
|
|
||||||
'500':
|
|
||||||
description: Internal Server Error - Unexpected server error
|
|
||||||
content:
|
|
||||||
application/json:
|
|
||||||
schema:
|
|
||||||
$ref: '#/components/schemas/InternalServerResponse'
|
|
||||||
/embeddings:
|
/embeddings:
|
||||||
post:
|
post:
|
||||||
x-speakeasy-name-override: generate
|
x-speakeasy-name-override: generate
|
||||||
|
|||||||
+41
-135
@@ -3847,6 +3847,40 @@ components:
|
|||||||
error:
|
error:
|
||||||
code: 408
|
code: 408
|
||||||
message: Operation timed out. Please try again later.
|
message: Operation timed out. Please try again later.
|
||||||
|
GoneResponseErrorData:
|
||||||
|
type: object
|
||||||
|
properties:
|
||||||
|
code:
|
||||||
|
type: integer
|
||||||
|
message:
|
||||||
|
type: string
|
||||||
|
metadata:
|
||||||
|
type: object
|
||||||
|
nullable: true
|
||||||
|
additionalProperties:
|
||||||
|
nullable: true
|
||||||
|
required:
|
||||||
|
- code
|
||||||
|
- message
|
||||||
|
description: Error data for GoneResponse
|
||||||
|
example:
|
||||||
|
code: 410
|
||||||
|
message: The Coinbase APIs used by this endpoint have been deprecated, so the Coinbase Commerce credits API has been removed. Use the web credits purchase flow instead.
|
||||||
|
GoneResponse:
|
||||||
|
type: object
|
||||||
|
properties:
|
||||||
|
error:
|
||||||
|
$ref: '#/components/schemas/GoneResponseErrorData'
|
||||||
|
user_id:
|
||||||
|
type: string
|
||||||
|
nullable: true
|
||||||
|
required:
|
||||||
|
- error
|
||||||
|
description: Gone - Endpoint has been permanently removed or deprecated
|
||||||
|
example:
|
||||||
|
error:
|
||||||
|
code: 410
|
||||||
|
message: The Coinbase APIs used by this endpoint have been deprecated, so the Coinbase Commerce credits API has been removed. Use the web credits purchase flow instead.
|
||||||
PayloadTooLargeResponseErrorData:
|
PayloadTooLargeResponseErrorData:
|
||||||
type: object
|
type: object
|
||||||
properties:
|
properties:
|
||||||
@@ -13347,29 +13381,6 @@ components:
|
|||||||
model: openai/gpt-4
|
model: openai/gpt-4
|
||||||
temperature: 0.7
|
temperature: 0.7
|
||||||
max_tokens: 150
|
max_tokens: 150
|
||||||
CreateChargeRequest:
|
|
||||||
type: object
|
|
||||||
properties:
|
|
||||||
amount:
|
|
||||||
type: number
|
|
||||||
sender:
|
|
||||||
type: string
|
|
||||||
chain_id:
|
|
||||||
type: integer
|
|
||||||
enum:
|
|
||||||
- 1
|
|
||||||
- 137
|
|
||||||
- 8453
|
|
||||||
x-speakeasy-unknown-values: allow
|
|
||||||
required:
|
|
||||||
- amount
|
|
||||||
- sender
|
|
||||||
- chain_id
|
|
||||||
description: Create a Coinbase charge for crypto payment
|
|
||||||
example:
|
|
||||||
amount: 100
|
|
||||||
sender: '0x1234567890123456789012345678901234567890'
|
|
||||||
chain_id: 1
|
|
||||||
ProviderPreferences:
|
ProviderPreferences:
|
||||||
type: object
|
type: object
|
||||||
properties:
|
properties:
|
||||||
@@ -14929,126 +14940,21 @@ paths:
|
|||||||
- $ref: "#/components/parameters/AppCategories"
|
- $ref: "#/components/parameters/AppCategories"
|
||||||
/credits/coinbase:
|
/credits/coinbase:
|
||||||
post:
|
post:
|
||||||
security:
|
security: []
|
||||||
- bearer: []
|
|
||||||
x-speakeasy-name-override: createCoinbaseCharge
|
x-speakeasy-name-override: createCoinbaseCharge
|
||||||
|
deprecated: true
|
||||||
tags:
|
tags:
|
||||||
- Credits
|
- Credits
|
||||||
summary: Create a Coinbase charge for crypto payment
|
summary: Deprecated Coinbase Commerce charge endpoint
|
||||||
operationId: createCoinbaseCharge
|
operationId: createCoinbaseCharge
|
||||||
description: Create a Coinbase charge for crypto payment
|
description: Deprecated. The Coinbase APIs used by this endpoint have been deprecated, so Coinbase Commerce charges have been removed. Use the web credits purchase flow instead.
|
||||||
requestBody:
|
|
||||||
content:
|
|
||||||
application/json:
|
|
||||||
schema:
|
|
||||||
$ref: '#/components/schemas/CreateChargeRequest'
|
|
||||||
required: true
|
|
||||||
responses:
|
responses:
|
||||||
'200':
|
'410':
|
||||||
description: Returns the calldata to fulfill the transaction
|
description: Gone - Coinbase Commerce charge creation has been removed
|
||||||
content:
|
content:
|
||||||
application/json:
|
application/json:
|
||||||
schema:
|
schema:
|
||||||
type: object
|
$ref: '#/components/schemas/GoneResponse'
|
||||||
properties:
|
|
||||||
data:
|
|
||||||
type: object
|
|
||||||
properties:
|
|
||||||
id:
|
|
||||||
type: string
|
|
||||||
created_at:
|
|
||||||
type: string
|
|
||||||
expires_at:
|
|
||||||
type: string
|
|
||||||
web3_data:
|
|
||||||
type: object
|
|
||||||
properties:
|
|
||||||
transfer_intent:
|
|
||||||
type: object
|
|
||||||
properties:
|
|
||||||
call_data:
|
|
||||||
type: object
|
|
||||||
properties:
|
|
||||||
deadline:
|
|
||||||
type: string
|
|
||||||
fee_amount:
|
|
||||||
type: string
|
|
||||||
id:
|
|
||||||
type: string
|
|
||||||
operator:
|
|
||||||
type: string
|
|
||||||
prefix:
|
|
||||||
type: string
|
|
||||||
recipient:
|
|
||||||
type: string
|
|
||||||
recipient_amount:
|
|
||||||
type: string
|
|
||||||
recipient_currency:
|
|
||||||
type: string
|
|
||||||
refund_destination:
|
|
||||||
type: string
|
|
||||||
signature:
|
|
||||||
type: string
|
|
||||||
required:
|
|
||||||
- deadline
|
|
||||||
- fee_amount
|
|
||||||
- id
|
|
||||||
- operator
|
|
||||||
- prefix
|
|
||||||
- recipient
|
|
||||||
- recipient_amount
|
|
||||||
- recipient_currency
|
|
||||||
- refund_destination
|
|
||||||
- signature
|
|
||||||
metadata:
|
|
||||||
type: object
|
|
||||||
properties:
|
|
||||||
chain_id:
|
|
||||||
type: number
|
|
||||||
contract_address:
|
|
||||||
type: string
|
|
||||||
sender:
|
|
||||||
type: string
|
|
||||||
required:
|
|
||||||
- chain_id
|
|
||||||
- contract_address
|
|
||||||
- sender
|
|
||||||
required:
|
|
||||||
- call_data
|
|
||||||
- metadata
|
|
||||||
required:
|
|
||||||
- transfer_intent
|
|
||||||
required:
|
|
||||||
- id
|
|
||||||
- created_at
|
|
||||||
- expires_at
|
|
||||||
- web3_data
|
|
||||||
required:
|
|
||||||
- data
|
|
||||||
'400':
|
|
||||||
description: Bad Request - Invalid credit amount or request body
|
|
||||||
content:
|
|
||||||
application/json:
|
|
||||||
schema:
|
|
||||||
$ref: '#/components/schemas/BadRequestResponse'
|
|
||||||
'401':
|
|
||||||
description: Unauthorized - Authentication required or invalid credentials
|
|
||||||
content:
|
|
||||||
application/json:
|
|
||||||
schema:
|
|
||||||
$ref: '#/components/schemas/UnauthorizedResponse'
|
|
||||||
'429':
|
|
||||||
description: Too Many Requests - Rate limit exceeded
|
|
||||||
content:
|
|
||||||
application/json:
|
|
||||||
schema:
|
|
||||||
$ref: '#/components/schemas/TooManyRequestsResponse'
|
|
||||||
'500':
|
|
||||||
description: Internal Server Error - Unexpected server error
|
|
||||||
content:
|
|
||||||
application/json:
|
|
||||||
schema:
|
|
||||||
$ref: '#/components/schemas/InternalServerResponse'
|
|
||||||
parameters:
|
parameters:
|
||||||
- $ref: "#/components/parameters/AppIdentifier"
|
- $ref: "#/components/parameters/AppIdentifier"
|
||||||
- $ref: "#/components/parameters/AppDisplayName"
|
- $ref: "#/components/parameters/AppDisplayName"
|
||||||
|
|||||||
@@ -1,15 +1,9 @@
|
|||||||
speakeasyVersion: 1.680.0
|
speakeasyVersion: 1.680.0
|
||||||
sources:
|
sources:
|
||||||
-OAS:
|
|
||||||
sourceNamespace: open-router-chat-completions-api
|
|
||||||
sourceRevisionDigest: sha256:01256c8494de6bfc13c36d82ae316a6a13d402194f844618bcd4d59e34f325f3
|
|
||||||
sourceBlobDigest: sha256:4c80e48fd5e1cd030e68d664eb93984b4d5946867252ff1755a2bd2a05eccd4e
|
|
||||||
tags:
|
|
||||||
- latest
|
|
||||||
OpenRouter API:
|
OpenRouter API:
|
||||||
sourceNamespace: open-router-chat-completions-api
|
sourceNamespace: open-router-chat-completions-api
|
||||||
sourceRevisionDigest: sha256:c6e52cd6931f7230cd3c226f7482b02dc0dfd682cd14540deb6f721fc0fe9d83
|
sourceRevisionDigest: sha256:0795e89fdc7634204a5e1c93c441069d7bfb349fc1c7f43a53db24f0803c72fa
|
||||||
sourceBlobDigest: sha256:01ccba21dd9b8695a4071a9f75c329c4c57fdc2c8dfc0ee189ddb2e5ea1dfecb
|
sourceBlobDigest: sha256:bb920e0d3ed7fb2c204d06aa436d9ce9a3635727d3a6147a7a2798333458d12a
|
||||||
tags:
|
tags:
|
||||||
- latest
|
- latest
|
||||||
- 1.0.0
|
- 1.0.0
|
||||||
@@ -17,10 +11,10 @@ targets:
|
|||||||
open-router:
|
open-router:
|
||||||
source: OpenRouter API
|
source: OpenRouter API
|
||||||
sourceNamespace: open-router-chat-completions-api
|
sourceNamespace: open-router-chat-completions-api
|
||||||
sourceRevisionDigest: sha256:c6e52cd6931f7230cd3c226f7482b02dc0dfd682cd14540deb6f721fc0fe9d83
|
sourceRevisionDigest: sha256:0795e89fdc7634204a5e1c93c441069d7bfb349fc1c7f43a53db24f0803c72fa
|
||||||
sourceBlobDigest: sha256:01ccba21dd9b8695a4071a9f75c329c4c57fdc2c8dfc0ee189ddb2e5ea1dfecb
|
sourceBlobDigest: sha256:bb920e0d3ed7fb2c204d06aa436d9ce9a3635727d3a6147a7a2798333458d12a
|
||||||
codeSamplesNamespace: open-router-python-code-samples
|
codeSamplesNamespace: open-router-python-code-samples
|
||||||
codeSamplesRevisionDigest: sha256:1a98221b7ae69cb68277c44cbbaac0c80b5260821b687848445bbc6dddc26894
|
codeSamplesRevisionDigest: sha256:c368e0601d6b667625dd99ffcd53e69e3dc98a4b518a45444add6457dde83b22
|
||||||
workflow:
|
workflow:
|
||||||
workflowVersion: 1.0.0
|
workflowVersion: 1.0.0
|
||||||
speakeasyVersion: 1.680.0
|
speakeasyVersion: 1.680.0
|
||||||
|
|||||||
@@ -1,17 +0,0 @@
|
|||||||
# AssistantMessage
|
|
||||||
|
|
||||||
Assistant message for requests and responses
|
|
||||||
|
|
||||||
|
|
||||||
## Fields
|
|
||||||
|
|
||||||
| Field | Type | Required | Description | Example |
|
|
||||||
| ------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------ |
|
|
||||||
| `role` | [components.AssistantMessageRole](../components/assistantmessagerole.md) | :heavy_check_mark: | N/A | |
|
|
||||||
| `content` | [OptionalNullable[components.AssistantMessageContent]](../components/assistantmessagecontent.md) | :heavy_minus_sign: | Assistant message content | |
|
|
||||||
| `name` | *Optional[str]* | :heavy_minus_sign: | Optional name for the assistant | |
|
|
||||||
| `tool_calls` | List[[components.ChatMessageToolCall](../components/chatmessagetoolcall.md)] | :heavy_minus_sign: | Tool calls made by the assistant | |
|
|
||||||
| `refusal` | *OptionalNullable[str]* | :heavy_minus_sign: | Refusal message if content was refused | |
|
|
||||||
| `reasoning` | *OptionalNullable[str]* | :heavy_minus_sign: | Reasoning output | |
|
|
||||||
| `reasoning_details` | List[[components.ReasoningDetailUnion](../components/reasoningdetailunion.md)] | :heavy_minus_sign: | Reasoning details for extended thinking models | |
|
|
||||||
| `images` | List[[components.AssistantMessageImages](../components/assistantmessageimages.md)] | :heavy_minus_sign: | Generated images from image generation models | [<br/>{<br/>"image_url": {<br/>"url": "data:image/png;base64,iVBORw0KGgo..."<br/>}<br/>}<br/>] |
|
|
||||||
@@ -1,25 +0,0 @@
|
|||||||
# AssistantMessageContent
|
|
||||||
|
|
||||||
Assistant message content
|
|
||||||
|
|
||||||
|
|
||||||
## Supported Types
|
|
||||||
|
|
||||||
### `str`
|
|
||||||
|
|
||||||
```python
|
|
||||||
value: str = /* values here */
|
|
||||||
```
|
|
||||||
|
|
||||||
### `List[components.ChatMessageContentItem]`
|
|
||||||
|
|
||||||
```python
|
|
||||||
value: List[components.ChatMessageContentItem] = /* values here */
|
|
||||||
```
|
|
||||||
|
|
||||||
### `Any`
|
|
||||||
|
|
||||||
```python
|
|
||||||
value: Any = /* values here */
|
|
||||||
```
|
|
||||||
|
|
||||||
@@ -1,8 +0,0 @@
|
|||||||
# AssistantMessageImages
|
|
||||||
|
|
||||||
|
|
||||||
## Fields
|
|
||||||
|
|
||||||
| Field | Type | Required | Description |
|
|
||||||
| -------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------- |
|
|
||||||
| `image_url` | [components.AssistantMessageImagesImageURL](../components/assistantmessageimagesimageurl.md) | :heavy_check_mark: | N/A |
|
|
||||||
@@ -1,8 +0,0 @@
|
|||||||
# AssistantMessageImagesImageURL
|
|
||||||
|
|
||||||
|
|
||||||
## Fields
|
|
||||||
|
|
||||||
| Field | Type | Required | Description |
|
|
||||||
| ------------------------------------------------- | ------------------------------------------------- | ------------------------------------------------- | ------------------------------------------------- |
|
|
||||||
| `url` | *str* | :heavy_check_mark: | URL or base64-encoded data of the generated image |
|
|
||||||
@@ -1,8 +0,0 @@
|
|||||||
# AssistantMessageRole
|
|
||||||
|
|
||||||
|
|
||||||
## Values
|
|
||||||
|
|
||||||
| Name | Value |
|
|
||||||
| ----------- | ----------- |
|
|
||||||
| `ASSISTANT` | assistant |
|
|
||||||
@@ -1,10 +0,0 @@
|
|||||||
# ChainID
|
|
||||||
|
|
||||||
|
|
||||||
## Values
|
|
||||||
|
|
||||||
| Name | Value |
|
|
||||||
| --------------------------------------------- | --------------------------------------------- |
|
|
||||||
| `ONE` | 1 |
|
|
||||||
| `ONE_HUNDRED_AND_THIRTY_SEVEN` | 137 |
|
|
||||||
| `EIGHT_THOUSAND_FOUR_HUNDRED_AND_FIFTY_THREE` | 8453 |
|
|
||||||
@@ -1,12 +0,0 @@
|
|||||||
# ChatCompletionFinishReason
|
|
||||||
|
|
||||||
|
|
||||||
## Values
|
|
||||||
|
|
||||||
| Name | Value |
|
|
||||||
| ---------------- | ---------------- |
|
|
||||||
| `TOOL_CALLS` | tool_calls |
|
|
||||||
| `STOP` | stop |
|
|
||||||
| `LENGTH` | length |
|
|
||||||
| `CONTENT_FILTER` | content_filter |
|
|
||||||
| `ERROR` | error |
|
|
||||||
@@ -1,39 +0,0 @@
|
|||||||
# ChatGenerationParams
|
|
||||||
|
|
||||||
Chat completion request parameters
|
|
||||||
|
|
||||||
|
|
||||||
## Fields
|
|
||||||
|
|
||||||
| Field | Type | Required | Description | Example |
|
|
||||||
| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
||||||
| `provider` | [OptionalNullable[components.ChatGenerationParamsProvider]](../components/chatgenerationparamsprovider.md) | :heavy_minus_sign: | When multiple model providers are available, optionally indicate your routing preference. | |
|
|
||||||
| `plugins` | List[[components.ChatGenerationParamsPluginUnion](../components/chatgenerationparamspluginunion.md)] | :heavy_minus_sign: | Plugins you want to enable for this request, including their settings. | |
|
|
||||||
| `user` | *Optional[str]* | :heavy_minus_sign: | Unique user identifier | user-123 |
|
|
||||||
| `session_id` | *Optional[str]* | :heavy_minus_sign: | A unique identifier for grouping related requests (e.g., a conversation or agent workflow) for observability. If provided in both the request body and the x-session-id header, the body value takes precedence. Maximum of 128 characters. | |
|
|
||||||
| `trace` | [Optional[components.ChatGenerationParamsTrace]](../components/chatgenerationparamstrace.md) | :heavy_minus_sign: | Metadata for observability and tracing. Known keys (trace_id, trace_name, span_name, generation_name, parent_span_id) have special handling. Additional keys are passed through as custom metadata to configured broadcast destinations. | |
|
|
||||||
| `messages` | List[[components.Message](../components/message.md)] | :heavy_check_mark: | List of messages for the conversation | [<br/>{<br/>"role": "user",<br/>"content": "Hello!"<br/>}<br/>] |
|
|
||||||
| `model` | *Optional[str]* | :heavy_minus_sign: | Model to use for completion | openai/gpt-4 |
|
|
||||||
| `models` | List[*str*] | :heavy_minus_sign: | Models to use for completion | [<br/>"openai/gpt-4",<br/>"openai/gpt-4o"<br/>] |
|
|
||||||
| `frequency_penalty` | *OptionalNullable[float]* | :heavy_minus_sign: | Frequency penalty (-2.0 to 2.0) | 0 |
|
|
||||||
| `logit_bias` | Dict[str, *float*] | :heavy_minus_sign: | Token logit bias adjustments | {<br/>"50256": -100<br/>} |
|
|
||||||
| `logprobs` | *OptionalNullable[bool]* | :heavy_minus_sign: | Return log probabilities | false |
|
|
||||||
| `top_logprobs` | *OptionalNullable[float]* | :heavy_minus_sign: | Number of top log probabilities to return (0-20) | 5 |
|
|
||||||
| `max_completion_tokens` | *OptionalNullable[float]* | :heavy_minus_sign: | Maximum tokens in completion | 100 |
|
|
||||||
| `max_tokens` | *OptionalNullable[float]* | :heavy_minus_sign: | Maximum tokens (deprecated, use max_completion_tokens) | 100 |
|
|
||||||
| `metadata` | Dict[str, *str*] | :heavy_minus_sign: | Key-value pairs for additional object information (max 16 pairs, 64 char keys, 512 char values) | {<br/>"user_id": "user-123",<br/>"session_id": "session-456"<br/>} |
|
|
||||||
| `presence_penalty` | *OptionalNullable[float]* | :heavy_minus_sign: | Presence penalty (-2.0 to 2.0) | 0 |
|
|
||||||
| `reasoning` | [Optional[components.Reasoning]](../components/reasoning.md) | :heavy_minus_sign: | Configuration options for reasoning models | {<br/>"effort": "medium",<br/>"summary": "concise"<br/>} |
|
|
||||||
| `response_format` | [Optional[components.ResponseFormat]](../components/responseformat.md) | :heavy_minus_sign: | Response format configuration | {<br/>"type": "json_object"<br/>} |
|
|
||||||
| `seed` | *OptionalNullable[int]* | :heavy_minus_sign: | Random seed for deterministic outputs | 42 |
|
|
||||||
| `stop` | [OptionalNullable[components.Stop]](../components/stop.md) | :heavy_minus_sign: | Stop sequences (up to 4) | [<br/>""<br/>] |
|
|
||||||
| `stream` | *Optional[bool]* | :heavy_minus_sign: | Enable streaming response | false |
|
|
||||||
| `stream_options` | [OptionalNullable[components.ChatStreamOptions]](../components/chatstreamoptions.md) | :heavy_minus_sign: | Streaming configuration options | {<br/>"include_usage": true<br/>} |
|
|
||||||
| `temperature` | *OptionalNullable[float]* | :heavy_minus_sign: | Sampling temperature (0-2) | 0.7 |
|
|
||||||
| `parallel_tool_calls` | *OptionalNullable[bool]* | :heavy_minus_sign: | N/A | |
|
|
||||||
| `tool_choice` | [Optional[components.ToolChoiceOption]](../components/toolchoiceoption.md) | :heavy_minus_sign: | Tool choice configuration | auto |
|
|
||||||
| `tools` | List[[components.ToolDefinitionJSON](../components/tooldefinitionjson.md)] | :heavy_minus_sign: | Available tools for function calling | [<br/>{<br/>"type": "function",<br/>"function": {<br/>"name": "get_weather",<br/>"description": "Get weather"<br/>}<br/>}<br/>] |
|
|
||||||
| `top_p` | *OptionalNullable[float]* | :heavy_minus_sign: | Nucleus sampling parameter (0-1) | 1 |
|
|
||||||
| `debug` | [Optional[components.DebugOptions]](../components/debugoptions.md) | :heavy_minus_sign: | Debug options for inspecting request transformations (streaming only) | {<br/>"echo_upstream_body": true<br/>} |
|
|
||||||
| `image_config` | Dict[str, [components.ChatGenerationParamsImageConfig](../components/chatgenerationparamsimageconfig.md)] | :heavy_minus_sign: | Provider-specific image configuration options. Keys and values vary by model/provider. See https://openrouter.ai/docs/guides/overview/multimodal/image-generation for more details. | {<br/>"aspect_ratio": "16:9"<br/>} |
|
|
||||||
| `modalities` | List[[components.Modality](../components/modality.md)] | :heavy_minus_sign: | Output modalities for the response. Supported values are "text" and "image". | [<br/>"text",<br/>"image"<br/>] |
|
|
||||||
@@ -1,12 +0,0 @@
|
|||||||
# ChatGenerationParamsBy
|
|
||||||
|
|
||||||
The provider sorting strategy (price, throughput, latency)
|
|
||||||
|
|
||||||
|
|
||||||
## Values
|
|
||||||
|
|
||||||
| Name | Value |
|
|
||||||
| ------------ | ------------ |
|
|
||||||
| `PRICE` | price |
|
|
||||||
| `THROUGHPUT` | throughput |
|
|
||||||
| `LATENCY` | latency |
|
|
||||||
@@ -1,9 +0,0 @@
|
|||||||
# ChatGenerationParamsEngine
|
|
||||||
|
|
||||||
|
|
||||||
## Values
|
|
||||||
|
|
||||||
| Name | Value |
|
|
||||||
| -------- | -------- |
|
|
||||||
| `NATIVE` | native |
|
|
||||||
| `EXA` | exa |
|
|
||||||
@@ -1,8 +0,0 @@
|
|||||||
# ChatGenerationParamsIDAutoRouter
|
|
||||||
|
|
||||||
|
|
||||||
## Values
|
|
||||||
|
|
||||||
| Name | Value |
|
|
||||||
| ------------- | ------------- |
|
|
||||||
| `AUTO_ROUTER` | auto-router |
|
|
||||||
@@ -1,8 +0,0 @@
|
|||||||
# ChatGenerationParamsIDFileParser
|
|
||||||
|
|
||||||
|
|
||||||
## Values
|
|
||||||
|
|
||||||
| Name | Value |
|
|
||||||
| ------------- | ------------- |
|
|
||||||
| `FILE_PARSER` | file-parser |
|
|
||||||
@@ -1,8 +0,0 @@
|
|||||||
# ChatGenerationParamsIDModeration
|
|
||||||
|
|
||||||
|
|
||||||
## Values
|
|
||||||
|
|
||||||
| Name | Value |
|
|
||||||
| ------------ | ------------ |
|
|
||||||
| `MODERATION` | moderation |
|
|
||||||
@@ -1,8 +0,0 @@
|
|||||||
# ChatGenerationParamsIDResponseHealing
|
|
||||||
|
|
||||||
|
|
||||||
## Values
|
|
||||||
|
|
||||||
| Name | Value |
|
|
||||||
| ------------------ | ------------------ |
|
|
||||||
| `RESPONSE_HEALING` | response-healing |
|
|
||||||
@@ -1,8 +0,0 @@
|
|||||||
# ChatGenerationParamsIDWeb
|
|
||||||
|
|
||||||
|
|
||||||
## Values
|
|
||||||
|
|
||||||
| Name | Value |
|
|
||||||
| ----- | ----- |
|
|
||||||
| `WEB` | web |
|
|
||||||
@@ -1,17 +0,0 @@
|
|||||||
# ChatGenerationParamsIgnore
|
|
||||||
|
|
||||||
|
|
||||||
## Supported Types
|
|
||||||
|
|
||||||
### `components.ProviderName`
|
|
||||||
|
|
||||||
```python
|
|
||||||
value: components.ProviderName = /* values here */
|
|
||||||
```
|
|
||||||
|
|
||||||
### `str`
|
|
||||||
|
|
||||||
```python
|
|
||||||
value: str = /* values here */
|
|
||||||
```
|
|
||||||
|
|
||||||
@@ -1,23 +0,0 @@
|
|||||||
# ChatGenerationParamsImageConfig
|
|
||||||
|
|
||||||
|
|
||||||
## Supported Types
|
|
||||||
|
|
||||||
### `str`
|
|
||||||
|
|
||||||
```python
|
|
||||||
value: str = /* values here */
|
|
||||||
```
|
|
||||||
|
|
||||||
### `float`
|
|
||||||
|
|
||||||
```python
|
|
||||||
value: float = /* values here */
|
|
||||||
```
|
|
||||||
|
|
||||||
### `List[Nullable[Any]]`
|
|
||||||
|
|
||||||
```python
|
|
||||||
value: List[Nullable[Any]] = /* values here */
|
|
||||||
```
|
|
||||||
|
|
||||||
@@ -1,14 +0,0 @@
|
|||||||
# ChatGenerationParamsMaxPrice
|
|
||||||
|
|
||||||
The object specifying the maximum price you want to pay for this request. USD price per million tokens, for prompt and completion.
|
|
||||||
|
|
||||||
|
|
||||||
## Fields
|
|
||||||
|
|
||||||
| Field | Type | Required | Description | Example |
|
|
||||||
| ------------------------------- | ------------------------------- | ------------------------------- | ------------------------------- | ------------------------------- |
|
|
||||||
| `prompt` | *Optional[str]* | :heavy_minus_sign: | Price per million prompt tokens | 1000 |
|
|
||||||
| `completion` | *Optional[str]* | :heavy_minus_sign: | N/A | 1000 |
|
|
||||||
| `image` | *Optional[str]* | :heavy_minus_sign: | N/A | 1000 |
|
|
||||||
| `audio` | *Optional[str]* | :heavy_minus_sign: | N/A | 1000 |
|
|
||||||
| `request` | *Optional[str]* | :heavy_minus_sign: | N/A | 1000 |
|
|
||||||
@@ -1,17 +0,0 @@
|
|||||||
# ChatGenerationParamsOnly
|
|
||||||
|
|
||||||
|
|
||||||
## Supported Types
|
|
||||||
|
|
||||||
### `components.ProviderName`
|
|
||||||
|
|
||||||
```python
|
|
||||||
value: components.ProviderName = /* values here */
|
|
||||||
```
|
|
||||||
|
|
||||||
### `str`
|
|
||||||
|
|
||||||
```python
|
|
||||||
value: str = /* values here */
|
|
||||||
```
|
|
||||||
|
|
||||||
@@ -1,17 +0,0 @@
|
|||||||
# ChatGenerationParamsOrder
|
|
||||||
|
|
||||||
|
|
||||||
## Supported Types
|
|
||||||
|
|
||||||
### `components.ProviderName`
|
|
||||||
|
|
||||||
```python
|
|
||||||
value: components.ProviderName = /* values here */
|
|
||||||
```
|
|
||||||
|
|
||||||
### `str`
|
|
||||||
|
|
||||||
```python
|
|
||||||
value: str = /* values here */
|
|
||||||
```
|
|
||||||
|
|
||||||
@@ -1,11 +0,0 @@
|
|||||||
# ChatGenerationParamsPartition
|
|
||||||
|
|
||||||
Partitioning strategy for sorting: "model" (default) groups endpoints by model before sorting (fallback models remain fallbacks), "none" sorts all endpoints together regardless of model.
|
|
||||||
|
|
||||||
|
|
||||||
## Values
|
|
||||||
|
|
||||||
| Name | Value |
|
|
||||||
| ------- | ------- |
|
|
||||||
| `MODEL` | model |
|
|
||||||
| `NONE` | none |
|
|
||||||
@@ -1,8 +0,0 @@
|
|||||||
# ChatGenerationParamsPdf
|
|
||||||
|
|
||||||
|
|
||||||
## Fields
|
|
||||||
|
|
||||||
| Field | Type | Required | Description |
|
|
||||||
| ---------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------- |
|
|
||||||
| `engine` | [Optional[components.ChatGenerationParamsPdfEngine]](../components/chatgenerationparamspdfengine.md) | :heavy_minus_sign: | N/A |
|
|
||||||
@@ -1,10 +0,0 @@
|
|||||||
# ChatGenerationParamsPdfEngine
|
|
||||||
|
|
||||||
|
|
||||||
## Values
|
|
||||||
|
|
||||||
| Name | Value |
|
|
||||||
| ------------- | ------------- |
|
|
||||||
| `MISTRAL_OCR` | mistral-ocr |
|
|
||||||
| `PDF_TEXT` | pdf-text |
|
|
||||||
| `NATIVE` | native |
|
|
||||||
@@ -1,10 +0,0 @@
|
|||||||
# ChatGenerationParamsPluginAutoRouter
|
|
||||||
|
|
||||||
|
|
||||||
## Fields
|
|
||||||
|
|
||||||
| Field | Type | Required | Description | Example |
|
|
||||||
| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
||||||
| `id` | [components.ChatGenerationParamsIDAutoRouter](../components/chatgenerationparamsidautorouter.md) | :heavy_check_mark: | N/A | |
|
|
||||||
| `enabled` | *Optional[bool]* | :heavy_minus_sign: | Set to false to disable the auto-router plugin for this request. Defaults to true. | |
|
|
||||||
| `allowed_models` | List[*str*] | :heavy_minus_sign: | List of model patterns to filter which models the auto-router can route between. Supports wildcards (e.g., "anthropic/*" matches all Anthropic models). When not specified, uses the default supported models list. | [<br/>"anthropic/*",<br/>"openai/gpt-4o",<br/>"google/*"<br/>] |
|
|
||||||
@@ -1,10 +0,0 @@
|
|||||||
# ChatGenerationParamsPluginFileParser
|
|
||||||
|
|
||||||
|
|
||||||
## Fields
|
|
||||||
|
|
||||||
| Field | Type | Required | Description |
|
|
||||||
| ------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------ |
|
|
||||||
| `id` | [components.ChatGenerationParamsIDFileParser](../components/chatgenerationparamsidfileparser.md) | :heavy_check_mark: | N/A |
|
|
||||||
| `enabled` | *Optional[bool]* | :heavy_minus_sign: | Set to false to disable the file-parser plugin for this request. Defaults to true. |
|
|
||||||
| `pdf` | [Optional[components.PDFParserOptions]](../components/pdfparseroptions.md) | :heavy_minus_sign: | Options for PDF parsing. |
|
|
||||||
@@ -1,8 +0,0 @@
|
|||||||
# ChatGenerationParamsPluginModeration
|
|
||||||
|
|
||||||
|
|
||||||
## Fields
|
|
||||||
|
|
||||||
| Field | Type | Required | Description |
|
|
||||||
| ------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------ |
|
|
||||||
| `id` | [components.ChatGenerationParamsIDModeration](../components/chatgenerationparamsidmoderation.md) | :heavy_check_mark: | N/A |
|
|
||||||
@@ -1,9 +0,0 @@
|
|||||||
# ChatGenerationParamsPluginResponseHealing
|
|
||||||
|
|
||||||
|
|
||||||
## Fields
|
|
||||||
|
|
||||||
| Field | Type | Required | Description |
|
|
||||||
| ---------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------- |
|
|
||||||
| `id` | [components.ChatGenerationParamsIDResponseHealing](../components/chatgenerationparamsidresponsehealing.md) | :heavy_check_mark: | N/A |
|
|
||||||
| `enabled` | *Optional[bool]* | :heavy_minus_sign: | Set to false to disable the response-healing plugin for this request. Defaults to true. |
|
|
||||||
@@ -1,35 +0,0 @@
|
|||||||
# ChatGenerationParamsPluginUnion
|
|
||||||
|
|
||||||
|
|
||||||
## Supported Types
|
|
||||||
|
|
||||||
### `components.ChatGenerationParamsPluginAutoRouter`
|
|
||||||
|
|
||||||
```python
|
|
||||||
value: components.ChatGenerationParamsPluginAutoRouter = /* values here */
|
|
||||||
```
|
|
||||||
|
|
||||||
### `components.ChatGenerationParamsPluginModeration`
|
|
||||||
|
|
||||||
```python
|
|
||||||
value: components.ChatGenerationParamsPluginModeration = /* values here */
|
|
||||||
```
|
|
||||||
|
|
||||||
### `components.ChatGenerationParamsPluginWeb`
|
|
||||||
|
|
||||||
```python
|
|
||||||
value: components.ChatGenerationParamsPluginWeb = /* values here */
|
|
||||||
```
|
|
||||||
|
|
||||||
### `components.ChatGenerationParamsPluginFileParser`
|
|
||||||
|
|
||||||
```python
|
|
||||||
value: components.ChatGenerationParamsPluginFileParser = /* values here */
|
|
||||||
```
|
|
||||||
|
|
||||||
### `components.ChatGenerationParamsPluginResponseHealing`
|
|
||||||
|
|
||||||
```python
|
|
||||||
value: components.ChatGenerationParamsPluginResponseHealing = /* values here */
|
|
||||||
```
|
|
||||||
|
|
||||||
@@ -1,12 +0,0 @@
|
|||||||
# ChatGenerationParamsPluginWeb
|
|
||||||
|
|
||||||
|
|
||||||
## Fields
|
|
||||||
|
|
||||||
| Field | Type | Required | Description |
|
|
||||||
| ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- |
|
|
||||||
| `id` | [components.ChatGenerationParamsIDWeb](../components/chatgenerationparamsidweb.md) | :heavy_check_mark: | N/A |
|
|
||||||
| `enabled` | *Optional[bool]* | :heavy_minus_sign: | Set to false to disable the web-search plugin for this request. Defaults to true. |
|
|
||||||
| `max_results` | *Optional[float]* | :heavy_minus_sign: | N/A |
|
|
||||||
| `search_prompt` | *Optional[str]* | :heavy_minus_sign: | N/A |
|
|
||||||
| `engine` | [Optional[components.WebSearchEngine]](../components/websearchengine.md) | :heavy_minus_sign: | The search engine to use for web search. |
|
|
||||||
@@ -1,22 +0,0 @@
|
|||||||
# ChatGenerationParamsProvider
|
|
||||||
|
|
||||||
When multiple model providers are available, optionally indicate your routing preference.
|
|
||||||
|
|
||||||
|
|
||||||
## Fields
|
|
||||||
|
|
||||||
| Field | Type | Required | Description | Example |
|
|
||||||
| --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
||||||
| `allow_fallbacks` | *OptionalNullable[bool]* | :heavy_minus_sign: | Whether to allow backup providers to serve requests<br/>- true: (default) when the primary provider (or your custom providers in "order") is unavailable, use the next best provider.<br/>- false: use only the primary/custom provider, and return the upstream error if it's unavailable.<br/> | |
|
|
||||||
| `require_parameters` | *OptionalNullable[bool]* | :heavy_minus_sign: | Whether to filter providers to only those that support the parameters you've provided. If this setting is omitted or set to false, then providers will receive only the parameters they support, and ignore the rest. | |
|
|
||||||
| `data_collection` | [OptionalNullable[components.DataCollection]](../components/datacollection.md) | :heavy_minus_sign: | Data collection setting. If no available model provider meets the requirement, your request will return an error.<br/>- allow: (default) allow providers which store user data non-transiently and may train on it<br/><br/>- deny: use only providers which do not collect user data. | allow |
|
|
||||||
| `zdr` | *OptionalNullable[bool]* | :heavy_minus_sign: | Whether to restrict routing to only ZDR (Zero Data Retention) endpoints. When true, only endpoints that do not retain prompts will be used. | true |
|
|
||||||
| `enforce_distillable_text` | *OptionalNullable[bool]* | :heavy_minus_sign: | Whether to restrict routing to only models that allow text distillation. When true, only models where the author has allowed distillation will be used. | true |
|
|
||||||
| `order` | List[[components.ChatGenerationParamsOrder](../components/chatgenerationparamsorder.md)] | :heavy_minus_sign: | An ordered list of provider slugs. The router will attempt to use the first provider in the subset of this list that supports your requested model, and fall back to the next if it is unavailable. If no providers are available, the request will fail with an error message. | |
|
|
||||||
| `only` | List[[components.ChatGenerationParamsOnly](../components/chatgenerationparamsonly.md)] | :heavy_minus_sign: | List of provider slugs to allow. If provided, this list is merged with your account-wide allowed provider settings for this request. | |
|
|
||||||
| `ignore` | List[[components.ChatGenerationParamsIgnore](../components/chatgenerationparamsignore.md)] | :heavy_minus_sign: | List of provider slugs to ignore. If provided, this list is merged with your account-wide ignored provider settings for this request. | |
|
|
||||||
| `quantizations` | List[[components.Quantization](../components/quantization.md)] | :heavy_minus_sign: | A list of quantization levels to filter the provider by. | |
|
|
||||||
| `sort` | [OptionalNullable[components.ChatGenerationParamsSortUnion]](../components/chatgenerationparamssortunion.md) | :heavy_minus_sign: | N/A | price |
|
|
||||||
| `max_price` | [Optional[components.ChatGenerationParamsMaxPrice]](../components/chatgenerationparamsmaxprice.md) | :heavy_minus_sign: | The object specifying the maximum price you want to pay for this request. USD price per million tokens, for prompt and completion. | |
|
|
||||||
| `preferred_min_throughput` | [OptionalNullable[components.PreferredMinThroughput]](../components/preferredminthroughput.md) | :heavy_minus_sign: | Preferred minimum throughput (in tokens per second). Can be a number (applies to p50) or an object with percentile-specific cutoffs. Endpoints below the threshold(s) may still be used, but are deprioritized in routing. When using fallback models, this may cause a fallback model to be used instead of the primary model if it meets the threshold. | 100 |
|
|
||||||
| `preferred_max_latency` | [OptionalNullable[components.PreferredMaxLatency]](../components/preferredmaxlatency.md) | :heavy_minus_sign: | Preferred maximum latency (in seconds). Can be a number (applies to p50) or an object with percentile-specific cutoffs. Endpoints above the threshold(s) may still be used, but are deprioritized in routing. When using fallback models, this may cause a fallback model to be used instead of the primary model if it meets the threshold. | 5 |
|
|
||||||
@@ -1,12 +0,0 @@
|
|||||||
# ChatGenerationParamsProviderSort
|
|
||||||
|
|
||||||
The provider sorting strategy (price, throughput, latency)
|
|
||||||
|
|
||||||
|
|
||||||
## Values
|
|
||||||
|
|
||||||
| Name | Value |
|
|
||||||
| ------------ | ------------ |
|
|
||||||
| `PRICE` | price |
|
|
||||||
| `THROUGHPUT` | throughput |
|
|
||||||
| `LATENCY` | latency |
|
|
||||||
@@ -1,9 +0,0 @@
|
|||||||
# ChatGenerationParamsProviderSortConfig
|
|
||||||
|
|
||||||
|
|
||||||
## Fields
|
|
||||||
|
|
||||||
| Field | Type | Required | Description | Example |
|
|
||||||
| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
|
|
||||||
| `by` | [OptionalNullable[components.ChatGenerationParamsBy]](../components/chatgenerationparamsby.md) | :heavy_minus_sign: | The provider sorting strategy (price, throughput, latency) | price |
|
|
||||||
| `partition` | [OptionalNullable[components.ChatGenerationParamsPartition]](../components/chatgenerationparamspartition.md) | :heavy_minus_sign: | Partitioning strategy for sorting: "model" (default) groups endpoints by model before sorting (fallback models remain fallbacks), "none" sorts all endpoints together regardless of model. | model |
|
|
||||||
@@ -1,10 +0,0 @@
|
|||||||
# ChatGenerationParamsProviderSortConfigEnum
|
|
||||||
|
|
||||||
|
|
||||||
## Values
|
|
||||||
|
|
||||||
| Name | Value |
|
|
||||||
| ------------ | ------------ |
|
|
||||||
| `PRICE` | price |
|
|
||||||
| `THROUGHPUT` | throughput |
|
|
||||||
| `LATENCY` | latency |
|
|
||||||
@@ -1,17 +0,0 @@
|
|||||||
# ChatGenerationParamsProviderSortConfigUnion
|
|
||||||
|
|
||||||
|
|
||||||
## Supported Types
|
|
||||||
|
|
||||||
### `components.ChatGenerationParamsProviderSortConfig`
|
|
||||||
|
|
||||||
```python
|
|
||||||
value: components.ChatGenerationParamsProviderSortConfig = /* values here */
|
|
||||||
```
|
|
||||||
|
|
||||||
### `components.ChatGenerationParamsProviderSortConfigEnum`
|
|
||||||
|
|
||||||
```python
|
|
||||||
value: components.ChatGenerationParamsProviderSortConfigEnum = /* values here */
|
|
||||||
```
|
|
||||||
|
|
||||||
@@ -1,9 +0,0 @@
|
|||||||
# ChatGenerationParamsRoute
|
|
||||||
|
|
||||||
|
|
||||||
## Values
|
|
||||||
|
|
||||||
| Name | Value |
|
|
||||||
| ---------- | ---------- |
|
|
||||||
| `FALLBACK` | fallback |
|
|
||||||
| `SORT` | sort |
|
|
||||||
@@ -1,10 +0,0 @@
|
|||||||
# ChatGenerationParamsSortEnum
|
|
||||||
|
|
||||||
|
|
||||||
## Values
|
|
||||||
|
|
||||||
| Name | Value |
|
|
||||||
| ------------ | ------------ |
|
|
||||||
| `PRICE` | price |
|
|
||||||
| `THROUGHPUT` | throughput |
|
|
||||||
| `LATENCY` | latency |
|
|
||||||
@@ -1,25 +0,0 @@
|
|||||||
# ChatGenerationParamsSortUnion
|
|
||||||
|
|
||||||
The sorting strategy to use for this request, if "order" is not specified. When set, no load balancing is performed.
|
|
||||||
|
|
||||||
|
|
||||||
## Supported Types
|
|
||||||
|
|
||||||
### `components.ChatGenerationParamsProviderSort`
|
|
||||||
|
|
||||||
```python
|
|
||||||
value: components.ChatGenerationParamsProviderSort = /* values here */
|
|
||||||
```
|
|
||||||
|
|
||||||
### `components.ChatGenerationParamsProviderSortConfigUnion`
|
|
||||||
|
|
||||||
```python
|
|
||||||
value: components.ChatGenerationParamsProviderSortConfigUnion = /* values here */
|
|
||||||
```
|
|
||||||
|
|
||||||
### `components.ChatGenerationParamsSortEnum`
|
|
||||||
|
|
||||||
```python
|
|
||||||
value: components.ChatGenerationParamsSortEnum = /* values here */
|
|
||||||
```
|
|
||||||
|
|
||||||
@@ -1,15 +0,0 @@
|
|||||||
# ChatGenerationParamsTrace
|
|
||||||
|
|
||||||
Metadata for observability and tracing. Known keys (trace_id, trace_name, span_name, generation_name, parent_span_id) have special handling. Additional keys are passed through as custom metadata to configured broadcast destinations.
|
|
||||||
|
|
||||||
|
|
||||||
## Fields
|
|
||||||
|
|
||||||
| Field | Type | Required | Description |
|
|
||||||
| -------------------------- | -------------------------- | -------------------------- | -------------------------- |
|
|
||||||
| `trace_id` | *Optional[str]* | :heavy_minus_sign: | N/A |
|
|
||||||
| `trace_name` | *Optional[str]* | :heavy_minus_sign: | N/A |
|
|
||||||
| `span_name` | *Optional[str]* | :heavy_minus_sign: | N/A |
|
|
||||||
| `generation_name` | *Optional[str]* | :heavy_minus_sign: | N/A |
|
|
||||||
| `parent_span_id` | *Optional[str]* | :heavy_minus_sign: | N/A |
|
|
||||||
| `__pydantic_extra__` | Dict[str, *Nullable[Any]*] | :heavy_minus_sign: | N/A |
|
|
||||||
@@ -1,14 +0,0 @@
|
|||||||
# ChatGenerationTokenUsage
|
|
||||||
|
|
||||||
Token usage statistics
|
|
||||||
|
|
||||||
|
|
||||||
## Fields
|
|
||||||
|
|
||||||
| Field | Type | Required | Description |
|
|
||||||
| ------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------ |
|
|
||||||
| `completion_tokens` | *float* | :heavy_check_mark: | Number of tokens in the completion |
|
|
||||||
| `prompt_tokens` | *float* | :heavy_check_mark: | Number of tokens in the prompt |
|
|
||||||
| `total_tokens` | *float* | :heavy_check_mark: | Total number of tokens |
|
|
||||||
| `completion_tokens_details` | [OptionalNullable[components.CompletionTokensDetails]](../components/completiontokensdetails.md) | :heavy_minus_sign: | Detailed completion token usage |
|
|
||||||
| `prompt_tokens_details` | [OptionalNullable[components.PromptTokensDetails]](../components/prompttokensdetails.md) | :heavy_minus_sign: | Detailed prompt token usage |
|
|
||||||
@@ -1,31 +0,0 @@
|
|||||||
# ChatMessageContentItem
|
|
||||||
|
|
||||||
Content part for chat completion messages
|
|
||||||
|
|
||||||
|
|
||||||
## Supported Types
|
|
||||||
|
|
||||||
### `components.ChatMessageContentItemText`
|
|
||||||
|
|
||||||
```python
|
|
||||||
value: components.ChatMessageContentItemText = /* values here */
|
|
||||||
```
|
|
||||||
|
|
||||||
### `components.ChatMessageContentItemImage`
|
|
||||||
|
|
||||||
```python
|
|
||||||
value: components.ChatMessageContentItemImage = /* values here */
|
|
||||||
```
|
|
||||||
|
|
||||||
### `components.ChatMessageContentItemAudio`
|
|
||||||
|
|
||||||
```python
|
|
||||||
value: components.ChatMessageContentItemAudio = /* values here */
|
|
||||||
```
|
|
||||||
|
|
||||||
### `components.ChatMessageContentItem1`
|
|
||||||
|
|
||||||
```python
|
|
||||||
value: components.ChatMessageContentItem1 = /* values here */
|
|
||||||
```
|
|
||||||
|
|
||||||
@@ -1,17 +0,0 @@
|
|||||||
# ChatMessageContentItem1
|
|
||||||
|
|
||||||
|
|
||||||
## Supported Types
|
|
||||||
|
|
||||||
### `components.ChatMessageContentItemVideoLegacy`
|
|
||||||
|
|
||||||
```python
|
|
||||||
value: components.ChatMessageContentItemVideoLegacy = /* values here */
|
|
||||||
```
|
|
||||||
|
|
||||||
### `components.ChatMessageContentItemVideo`
|
|
||||||
|
|
||||||
```python
|
|
||||||
value: components.ChatMessageContentItemVideo = /* values here */
|
|
||||||
```
|
|
||||||
|
|
||||||
@@ -1,11 +0,0 @@
|
|||||||
# ChatMessageContentItemAudio
|
|
||||||
|
|
||||||
Audio input content part. Supported audio formats vary by provider.
|
|
||||||
|
|
||||||
|
|
||||||
## Fields
|
|
||||||
|
|
||||||
| Field | Type | Required | Description |
|
|
||||||
| ---------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------- |
|
|
||||||
| `type` | [components.ChatMessageContentItemAudioType](../components/chatmessagecontentitemaudiotype.md) | :heavy_check_mark: | N/A |
|
|
||||||
| `input_audio` | [components.ChatMessageContentItemAudioInputAudio](../components/chatmessagecontentitemaudioinputaudio.md) | :heavy_check_mark: | N/A |
|
|
||||||
@@ -1,9 +0,0 @@
|
|||||||
# ChatMessageContentItemAudioInputAudio
|
|
||||||
|
|
||||||
|
|
||||||
## Fields
|
|
||||||
|
|
||||||
| Field | Type | Required | Description |
|
|
||||||
| ----------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------- |
|
|
||||||
| `data` | *str* | :heavy_check_mark: | Base64 encoded audio data |
|
|
||||||
| `format_` | *str* | :heavy_check_mark: | Audio format (e.g., wav, mp3, flac, m4a, ogg, aiff, aac, pcm16, pcm24). Supported formats vary by provider. |
|
|
||||||
@@ -1,8 +0,0 @@
|
|||||||
# ChatMessageContentItemAudioType
|
|
||||||
|
|
||||||
|
|
||||||
## Values
|
|
||||||
|
|
||||||
| Name | Value |
|
|
||||||
| ------------- | ------------- |
|
|
||||||
| `INPUT_AUDIO` | input_audio |
|
|
||||||
@@ -1,11 +0,0 @@
|
|||||||
# ChatMessageContentItemCacheControl
|
|
||||||
|
|
||||||
Cache control for the content part
|
|
||||||
|
|
||||||
|
|
||||||
## Fields
|
|
||||||
|
|
||||||
| Field | Type | Required | Description |
|
|
||||||
| ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ |
|
|
||||||
| `type` | [components.ChatMessageContentItemCacheControlType](../components/chatmessagecontentitemcachecontroltype.md) | :heavy_check_mark: | N/A |
|
|
||||||
| `ttl` | [Optional[components.TTL]](../components/ttl.md) | :heavy_minus_sign: | N/A |
|
|
||||||
@@ -1,8 +0,0 @@
|
|||||||
# ChatMessageContentItemCacheControlType
|
|
||||||
|
|
||||||
|
|
||||||
## Values
|
|
||||||
|
|
||||||
| Name | Value |
|
|
||||||
| ----------- | ----------- |
|
|
||||||
| `EPHEMERAL` | ephemeral |
|
|
||||||
@@ -1,11 +0,0 @@
|
|||||||
# ChatMessageContentItemImage
|
|
||||||
|
|
||||||
Image content part for vision models
|
|
||||||
|
|
||||||
|
|
||||||
## Fields
|
|
||||||
|
|
||||||
| Field | Type | Required | Description |
|
|
||||||
| ------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------ |
|
|
||||||
| `type` | [components.ChatMessageContentItemImageType](../components/chatmessagecontentitemimagetype.md) | :heavy_check_mark: | N/A |
|
|
||||||
| `image_url` | [components.ChatMessageContentItemImageImageURL](../components/chatmessagecontentitemimageimageurl.md) | :heavy_check_mark: | N/A |
|
|
||||||
@@ -1,12 +0,0 @@
|
|||||||
# ChatMessageContentItemImageDetail
|
|
||||||
|
|
||||||
Image detail level for vision models
|
|
||||||
|
|
||||||
|
|
||||||
## Values
|
|
||||||
|
|
||||||
| Name | Value |
|
|
||||||
| ------ | ------ |
|
|
||||||
| `AUTO` | auto |
|
|
||||||
| `LOW` | low |
|
|
||||||
| `HIGH` | high |
|
|
||||||
@@ -1,9 +0,0 @@
|
|||||||
# ChatMessageContentItemImageImageURL
|
|
||||||
|
|
||||||
|
|
||||||
## Fields
|
|
||||||
|
|
||||||
| Field | Type | Required | Description |
|
|
||||||
| ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ |
|
|
||||||
| `url` | *str* | :heavy_check_mark: | URL of the image (data: URLs supported) |
|
|
||||||
| `detail` | [Optional[components.ChatMessageContentItemImageDetail]](../components/chatmessagecontentitemimagedetail.md) | :heavy_minus_sign: | Image detail level for vision models |
|
|
||||||
@@ -1,8 +0,0 @@
|
|||||||
# ChatMessageContentItemImageType
|
|
||||||
|
|
||||||
|
|
||||||
## Values
|
|
||||||
|
|
||||||
| Name | Value |
|
|
||||||
| ----------- | ----------- |
|
|
||||||
| `IMAGE_URL` | image_url |
|
|
||||||
@@ -1,12 +0,0 @@
|
|||||||
# ChatMessageContentItemText
|
|
||||||
|
|
||||||
Text content part
|
|
||||||
|
|
||||||
|
|
||||||
## Fields
|
|
||||||
|
|
||||||
| Field | Type | Required | Description | Example |
|
|
||||||
| -------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------- |
|
|
||||||
| `type` | [components.ChatMessageContentItemTextType](../components/chatmessagecontentitemtexttype.md) | :heavy_check_mark: | N/A | |
|
|
||||||
| `text` | *str* | :heavy_check_mark: | N/A | |
|
|
||||||
| `cache_control` | [Optional[components.ChatMessageContentItemCacheControl]](../components/chatmessagecontentitemcachecontrol.md) | :heavy_minus_sign: | Cache control for the content part | {<br/>"type": "ephemeral",<br/>"ttl": "5m"<br/>} |
|
|
||||||
@@ -1,8 +0,0 @@
|
|||||||
# ChatMessageContentItemTextType
|
|
||||||
|
|
||||||
|
|
||||||
## Values
|
|
||||||
|
|
||||||
| Name | Value |
|
|
||||||
| ------ | ------ |
|
|
||||||
| `TEXT` | text |
|
|
||||||
@@ -1,11 +0,0 @@
|
|||||||
# ChatMessageContentItemVideo
|
|
||||||
|
|
||||||
Video input content part
|
|
||||||
|
|
||||||
|
|
||||||
## Fields
|
|
||||||
|
|
||||||
| Field | Type | Required | Description |
|
|
||||||
| ---------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------- |
|
|
||||||
| `type` | [components.ChatMessageContentItemVideoType](../components/chatmessagecontentitemvideotype.md) | :heavy_check_mark: | N/A |
|
|
||||||
| `video_url` | [components.VideoInput](../components/videoinput.md) | :heavy_check_mark: | Video input object |
|
|
||||||
@@ -1,13 +0,0 @@
|
|||||||
# ~~ChatMessageContentItemVideoLegacy~~
|
|
||||||
|
|
||||||
Video input content part (legacy format - deprecated)
|
|
||||||
|
|
||||||
> :warning: **DEPRECATED**: This will be removed in a future release, please migrate away from it as soon as possible.
|
|
||||||
|
|
||||||
|
|
||||||
## Fields
|
|
||||||
|
|
||||||
| Field | Type | Required | Description |
|
|
||||||
| ---------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------- |
|
|
||||||
| `type` | [components.ChatMessageContentItemVideoLegacyType](../components/chatmessagecontentitemvideolegacytype.md) | :heavy_check_mark: | N/A |
|
|
||||||
| `video_url` | [components.VideoInput](../components/videoinput.md) | :heavy_check_mark: | Video input object |
|
|
||||||
@@ -1,8 +0,0 @@
|
|||||||
# ChatMessageContentItemVideoLegacyType
|
|
||||||
|
|
||||||
|
|
||||||
## Values
|
|
||||||
|
|
||||||
| Name | Value |
|
|
||||||
| ------------- | ------------- |
|
|
||||||
| `INPUT_VIDEO` | input_video |
|
|
||||||
@@ -1,8 +0,0 @@
|
|||||||
# ChatMessageContentItemVideoType
|
|
||||||
|
|
||||||
|
|
||||||
## Values
|
|
||||||
|
|
||||||
| Name | Value |
|
|
||||||
| ----------- | ----------- |
|
|
||||||
| `VIDEO_URL` | video_url |
|
|
||||||
@@ -1,13 +0,0 @@
|
|||||||
# ChatMessageTokenLogprob
|
|
||||||
|
|
||||||
Token log probability information
|
|
||||||
|
|
||||||
|
|
||||||
## Fields
|
|
||||||
|
|
||||||
| Field | Type | Required | Description |
|
|
||||||
| -------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------- |
|
|
||||||
| `token` | *str* | :heavy_check_mark: | The token |
|
|
||||||
| `logprob` | *float* | :heavy_check_mark: | Log probability of the token |
|
|
||||||
| `bytes_` | List[*float*] | :heavy_check_mark: | UTF-8 bytes of the token |
|
|
||||||
| `top_logprobs` | List[[components.ChatMessageTokenLogprobTopLogprob](../components/chatmessagetokenlogprobtoplogprob.md)] | :heavy_check_mark: | Top alternative tokens with probabilities |
|
|
||||||
@@ -1,11 +0,0 @@
|
|||||||
# ChatMessageTokenLogprobs
|
|
||||||
|
|
||||||
Log probabilities for the completion
|
|
||||||
|
|
||||||
|
|
||||||
## Fields
|
|
||||||
|
|
||||||
| Field | Type | Required | Description |
|
|
||||||
| ------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------ |
|
|
||||||
| `content` | List[[components.ChatMessageTokenLogprob](../components/chatmessagetokenlogprob.md)] | :heavy_check_mark: | Log probabilities for content tokens |
|
|
||||||
| `refusal` | List[[components.ChatMessageTokenLogprob](../components/chatmessagetokenlogprob.md)] | :heavy_check_mark: | Log probabilities for refusal tokens |
|
|
||||||
@@ -1,10 +0,0 @@
|
|||||||
# ChatMessageTokenLogprobTopLogprob
|
|
||||||
|
|
||||||
|
|
||||||
## Fields
|
|
||||||
|
|
||||||
| Field | Type | Required | Description |
|
|
||||||
| ------------------ | ------------------ | ------------------ | ------------------ |
|
|
||||||
| `token` | *str* | :heavy_check_mark: | N/A |
|
|
||||||
| `logprob` | *float* | :heavy_check_mark: | N/A |
|
|
||||||
| `bytes_` | List[*float*] | :heavy_check_mark: | N/A |
|
|
||||||
@@ -1,12 +0,0 @@
|
|||||||
# ChatMessageToolCall
|
|
||||||
|
|
||||||
Tool call made by the assistant
|
|
||||||
|
|
||||||
|
|
||||||
## Fields
|
|
||||||
|
|
||||||
| Field | Type | Required | Description |
|
|
||||||
| -------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------- |
|
|
||||||
| `id` | *str* | :heavy_check_mark: | Tool call identifier |
|
|
||||||
| `type` | [components.ChatMessageToolCallType](../components/chatmessagetoolcalltype.md) | :heavy_check_mark: | N/A |
|
|
||||||
| `function` | [components.ChatMessageToolCallFunction](../components/chatmessagetoolcallfunction.md) | :heavy_check_mark: | N/A |
|
|
||||||
@@ -1,9 +0,0 @@
|
|||||||
# ChatMessageToolCallFunction
|
|
||||||
|
|
||||||
|
|
||||||
## Fields
|
|
||||||
|
|
||||||
| Field | Type | Required | Description |
|
|
||||||
| --------------------------------- | --------------------------------- | --------------------------------- | --------------------------------- |
|
|
||||||
| `name` | *str* | :heavy_check_mark: | Function name to call |
|
|
||||||
| `arguments` | *str* | :heavy_check_mark: | Function arguments as JSON string |
|
|
||||||
@@ -1,8 +0,0 @@
|
|||||||
# ChatMessageToolCallType
|
|
||||||
|
|
||||||
|
|
||||||
## Values
|
|
||||||
|
|
||||||
| Name | Value |
|
|
||||||
| ---------- | ---------- |
|
|
||||||
| `FUNCTION` | function |
|
|
||||||
@@ -1,16 +0,0 @@
|
|||||||
# ChatResponse
|
|
||||||
|
|
||||||
Chat completion response
|
|
||||||
|
|
||||||
|
|
||||||
## Fields
|
|
||||||
|
|
||||||
| Field | Type | Required | Description | Example |
|
|
||||||
| ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
||||||
| `id` | *str* | :heavy_check_mark: | Unique completion identifier | chatcmpl-123 |
|
|
||||||
| `choices` | List[[components.ChatResponseChoice](../components/chatresponsechoice.md)] | :heavy_check_mark: | List of completion choices | |
|
|
||||||
| `created` | *float* | :heavy_check_mark: | Unix timestamp of creation | 1677652288 |
|
|
||||||
| `model` | *str* | :heavy_check_mark: | Model used for completion | openai/gpt-4 |
|
|
||||||
| `object` | [components.ChatResponseObject](../components/chatresponseobject.md) | :heavy_check_mark: | N/A | |
|
|
||||||
| `system_fingerprint` | *OptionalNullable[str]* | :heavy_minus_sign: | System fingerprint | fp_44709d6fcb |
|
|
||||||
| `usage` | [Optional[components.ChatGenerationTokenUsage]](../components/chatgenerationtokenusage.md) | :heavy_minus_sign: | Token usage statistics | {<br/>"completion_tokens": 15,<br/>"prompt_tokens": 10,<br/>"total_tokens": 25,<br/>"completion_tokens_details": {<br/>"reasoning_tokens": 5<br/>},<br/>"prompt_tokens_details": {<br/>"cached_tokens": 2<br/>}<br/>} |
|
|
||||||
@@ -1,13 +0,0 @@
|
|||||||
# ChatResponseChoice
|
|
||||||
|
|
||||||
Chat completion choice
|
|
||||||
|
|
||||||
|
|
||||||
## Fields
|
|
||||||
|
|
||||||
| Field | Type | Required | Description | Example |
|
|
||||||
| ------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------ |
|
|
||||||
| `finish_reason` | *Nullable[Any]* | :heavy_check_mark: | N/A | |
|
|
||||||
| `index` | *float* | :heavy_check_mark: | Choice index | 0 |
|
|
||||||
| `message` | [components.AssistantMessage](../components/assistantmessage.md) | :heavy_check_mark: | Assistant message for requests and responses | {<br/>"role": "user",<br/>"content": "What is the capital of France?"<br/>} |
|
|
||||||
| `logprobs` | [OptionalNullable[components.ChatMessageTokenLogprobs]](../components/chatmessagetokenlogprobs.md) | :heavy_minus_sign: | Log probabilities for the completion | {<br/>"content": [<br/>{<br/>"token": " Hello",<br/>"logprob": -0.612345,<br/>"bytes": null,<br/>"top_logprobs": []<br/>}<br/>],<br/>"refusal": null<br/>} |
|
|
||||||
@@ -1,8 +0,0 @@
|
|||||||
# ChatResponseObject
|
|
||||||
|
|
||||||
|
|
||||||
## Values
|
|
||||||
|
|
||||||
| Name | Value |
|
|
||||||
| ----------------- | ----------------- |
|
|
||||||
| `CHAT_COMPLETION` | chat.completion |
|
|
||||||
@@ -1,13 +0,0 @@
|
|||||||
# ChatStreamingChoice
|
|
||||||
|
|
||||||
Streaming completion choice chunk
|
|
||||||
|
|
||||||
|
|
||||||
## Fields
|
|
||||||
|
|
||||||
| Field | Type | Required | Description | Example |
|
|
||||||
| ------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------ |
|
|
||||||
| `delta` | [components.ChatStreamingMessageChunk](../components/chatstreamingmessagechunk.md) | :heavy_check_mark: | Delta changes in streaming response | {<br/>"role": "assistant",<br/>"content": "Hello"<br/>} |
|
|
||||||
| `finish_reason` | *Nullable[Any]* | :heavy_check_mark: | N/A | |
|
|
||||||
| `index` | *float* | :heavy_check_mark: | Choice index | 0 |
|
|
||||||
| `logprobs` | [OptionalNullable[components.ChatMessageTokenLogprobs]](../components/chatmessagetokenlogprobs.md) | :heavy_minus_sign: | Log probabilities for the completion | {<br/>"content": [<br/>{<br/>"token": " Hello",<br/>"logprob": -0.612345,<br/>"bytes": null,<br/>"top_logprobs": []<br/>}<br/>],<br/>"refusal": null<br/>} |
|
|
||||||
@@ -1,15 +0,0 @@
|
|||||||
# ChatStreamingMessageChunk
|
|
||||||
|
|
||||||
Delta changes in streaming response
|
|
||||||
|
|
||||||
|
|
||||||
## Fields
|
|
||||||
|
|
||||||
| Field | Type | Required | Description | Example |
|
|
||||||
| ---------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------- |
|
|
||||||
| `role` | [Optional[components.ChatStreamingMessageChunkRole]](../components/chatstreamingmessagechunkrole.md) | :heavy_minus_sign: | The role of the message author | assistant |
|
|
||||||
| `content` | *OptionalNullable[str]* | :heavy_minus_sign: | Message content delta | Hello |
|
|
||||||
| `reasoning` | *OptionalNullable[str]* | :heavy_minus_sign: | Reasoning content delta | I need to |
|
|
||||||
| `refusal` | *OptionalNullable[str]* | :heavy_minus_sign: | Refusal message delta | <nil> |
|
|
||||||
| `tool_calls` | List[[components.ChatStreamingMessageToolCall](../components/chatstreamingmessagetoolcall.md)] | :heavy_minus_sign: | Tool calls delta | |
|
|
||||||
| `reasoning_details` | List[[components.ReasoningDetailUnion](../components/reasoningdetailunion.md)] | :heavy_minus_sign: | Reasoning details for extended thinking models | |
|
|
||||||
@@ -1,10 +0,0 @@
|
|||||||
# ChatStreamingMessageChunkRole
|
|
||||||
|
|
||||||
The role of the message author
|
|
||||||
|
|
||||||
|
|
||||||
## Values
|
|
||||||
|
|
||||||
| Name | Value |
|
|
||||||
| ----------- | ----------- |
|
|
||||||
| `ASSISTANT` | assistant |
|
|
||||||
@@ -1,13 +0,0 @@
|
|||||||
# ChatStreamingMessageToolCall
|
|
||||||
|
|
||||||
Tool call delta for streaming responses
|
|
||||||
|
|
||||||
|
|
||||||
## Fields
|
|
||||||
|
|
||||||
| Field | Type | Required | Description | Example |
|
|
||||||
| ------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------ |
|
|
||||||
| `index` | *float* | :heavy_check_mark: | Tool call index in the array | 0 |
|
|
||||||
| `id` | *Optional[str]* | :heavy_minus_sign: | Tool call identifier | call_abc123 |
|
|
||||||
| `type` | [Optional[components.ChatStreamingMessageToolCallType]](../components/chatstreamingmessagetoolcalltype.md) | :heavy_minus_sign: | Tool call type | function |
|
|
||||||
| `function` | [Optional[components.ChatStreamingMessageToolCallFunction]](../components/chatstreamingmessagetoolcallfunction.md) | :heavy_minus_sign: | Function call details | |
|
|
||||||
@@ -1,11 +0,0 @@
|
|||||||
# ChatStreamingMessageToolCallFunction
|
|
||||||
|
|
||||||
Function call details
|
|
||||||
|
|
||||||
|
|
||||||
## Fields
|
|
||||||
|
|
||||||
| Field | Type | Required | Description | Example |
|
|
||||||
| --------------------------------- | --------------------------------- | --------------------------------- | --------------------------------- | --------------------------------- |
|
|
||||||
| `name` | *Optional[str]* | :heavy_minus_sign: | Function name | get_weather |
|
|
||||||
| `arguments` | *Optional[str]* | :heavy_minus_sign: | Function arguments as JSON string | {"location": |
|
|
||||||
@@ -1,10 +0,0 @@
|
|||||||
# ChatStreamingMessageToolCallType
|
|
||||||
|
|
||||||
Tool call type
|
|
||||||
|
|
||||||
|
|
||||||
## Values
|
|
||||||
|
|
||||||
| Name | Value |
|
|
||||||
| ---------- | ---------- |
|
|
||||||
| `FUNCTION` | function |
|
|
||||||
@@ -1,17 +0,0 @@
|
|||||||
# ChatStreamingResponseChunk
|
|
||||||
|
|
||||||
Streaming chat completion chunk
|
|
||||||
|
|
||||||
|
|
||||||
## Fields
|
|
||||||
|
|
||||||
| Field | Type | Required | Description | Example |
|
|
||||||
| ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
||||||
| `id` | *str* | :heavy_check_mark: | Unique chunk identifier | chatcmpl-123 |
|
|
||||||
| `choices` | List[[components.ChatStreamingChoice](../components/chatstreamingchoice.md)] | :heavy_check_mark: | List of streaming chunk choices | |
|
|
||||||
| `created` | *float* | :heavy_check_mark: | Unix timestamp of creation | 1677652288 |
|
|
||||||
| `model` | *str* | :heavy_check_mark: | Model used for completion | openai/gpt-4 |
|
|
||||||
| `object` | [components.ChatStreamingResponseChunkObject](../components/chatstreamingresponsechunkobject.md) | :heavy_check_mark: | N/A | |
|
|
||||||
| `system_fingerprint` | *OptionalNullable[str]* | :heavy_minus_sign: | System fingerprint | fp_44709d6fcb |
|
|
||||||
| `error` | [Optional[components.Error]](../components/error.md) | :heavy_minus_sign: | Error information | {<br/>"message": "Rate limit exceeded",<br/>"code": 429<br/>} |
|
|
||||||
| `usage` | [Optional[components.ChatGenerationTokenUsage]](../components/chatgenerationtokenusage.md) | :heavy_minus_sign: | Token usage statistics | {<br/>"completion_tokens": 15,<br/>"prompt_tokens": 10,<br/>"total_tokens": 25,<br/>"completion_tokens_details": {<br/>"reasoning_tokens": 5<br/>},<br/>"prompt_tokens_details": {<br/>"cached_tokens": 2<br/>}<br/>} |
|
|
||||||
@@ -1,8 +0,0 @@
|
|||||||
# ChatStreamingResponseChunkObject
|
|
||||||
|
|
||||||
|
|
||||||
## Values
|
|
||||||
|
|
||||||
| Name | Value |
|
|
||||||
| ----------------------- | ----------------------- |
|
|
||||||
| `CHAT_COMPLETION_CHUNK` | chat.completion.chunk |
|
|
||||||
@@ -1,12 +0,0 @@
|
|||||||
# CreateChargeRequest
|
|
||||||
|
|
||||||
Create a Coinbase charge for crypto payment
|
|
||||||
|
|
||||||
|
|
||||||
## Fields
|
|
||||||
|
|
||||||
| Field | Type | Required | Description |
|
|
||||||
| ---------------------------------------------- | ---------------------------------------------- | ---------------------------------------------- | ---------------------------------------------- |
|
|
||||||
| `amount` | *float* | :heavy_check_mark: | N/A |
|
|
||||||
| `sender` | *str* | :heavy_check_mark: | N/A |
|
|
||||||
| `chain_id` | [components.ChainID](../components/chainid.md) | :heavy_check_mark: | N/A |
|
|
||||||
@@ -1,10 +0,0 @@
|
|||||||
# DebugOptions
|
|
||||||
|
|
||||||
Debug options for inspecting request transformations (streaming only)
|
|
||||||
|
|
||||||
|
|
||||||
## Fields
|
|
||||||
|
|
||||||
| Field | Type | Required | Description | Example |
|
|
||||||
| ------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------ |
|
|
||||||
| `echo_upstream_body` | *Optional[bool]* | :heavy_minus_sign: | If true, includes the transformed upstream request body in a debug chunk at the start of the stream. Only works with streaming mode. | true |
|
|
||||||
@@ -1,12 +0,0 @@
|
|||||||
# DeveloperMessage
|
|
||||||
|
|
||||||
Developer message
|
|
||||||
|
|
||||||
|
|
||||||
## Fields
|
|
||||||
|
|
||||||
| Field | Type | Required | Description | Example |
|
|
||||||
| ------------------------------------------------------------------------------ | ------------------------------------------------------------------------------ | ------------------------------------------------------------------------------ | ------------------------------------------------------------------------------ | ------------------------------------------------------------------------------ |
|
|
||||||
| `role` | [components.DeveloperMessageRole](../components/developermessagerole.md) | :heavy_check_mark: | N/A | |
|
|
||||||
| `content` | [components.DeveloperMessageContent](../components/developermessagecontent.md) | :heavy_check_mark: | Developer message content | This is a message from the developer. |
|
|
||||||
| `name` | *Optional[str]* | :heavy_minus_sign: | Optional name for the developer message | Developer |
|
|
||||||
@@ -1,19 +0,0 @@
|
|||||||
# DeveloperMessageContent
|
|
||||||
|
|
||||||
Developer message content
|
|
||||||
|
|
||||||
|
|
||||||
## Supported Types
|
|
||||||
|
|
||||||
### `str`
|
|
||||||
|
|
||||||
```python
|
|
||||||
value: str = /* values here */
|
|
||||||
```
|
|
||||||
|
|
||||||
### `List[components.ChatMessageContentItemText]`
|
|
||||||
|
|
||||||
```python
|
|
||||||
value: List[components.ChatMessageContentItemText] = /* values here */
|
|
||||||
```
|
|
||||||
|
|
||||||
@@ -1,8 +0,0 @@
|
|||||||
# DeveloperMessageRole
|
|
||||||
|
|
||||||
|
|
||||||
## Values
|
|
||||||
|
|
||||||
| Name | Value |
|
|
||||||
| ----------- | ----------- |
|
|
||||||
| `DEVELOPER` | developer |
|
|
||||||
@@ -1,17 +0,0 @@
|
|||||||
# Ignore
|
|
||||||
|
|
||||||
|
|
||||||
## Supported Types
|
|
||||||
|
|
||||||
### `components.ProviderName`
|
|
||||||
|
|
||||||
```python
|
|
||||||
value: components.ProviderName = /* values here */
|
|
||||||
```
|
|
||||||
|
|
||||||
### `str`
|
|
||||||
|
|
||||||
```python
|
|
||||||
value: str = /* values here */
|
|
||||||
```
|
|
||||||
|
|
||||||
@@ -1,13 +0,0 @@
|
|||||||
# JSONSchemaConfig
|
|
||||||
|
|
||||||
JSON Schema configuration object
|
|
||||||
|
|
||||||
|
|
||||||
## Fields
|
|
||||||
|
|
||||||
| Field | Type | Required | Description | Example |
|
|
||||||
| ------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------ |
|
|
||||||
| `name` | *str* | :heavy_check_mark: | Schema name (a-z, A-Z, 0-9, underscores, dashes, max 64 chars) | math_response |
|
|
||||||
| `description` | *Optional[str]* | :heavy_minus_sign: | Schema description for the model | A mathematical response |
|
|
||||||
| `schema_` | Dict[str, *Nullable[Any]*] | :heavy_minus_sign: | JSON Schema object | {<br/>"type": "object",<br/>"properties": {<br/>"answer": {<br/>"type": "number"<br/>}<br/>},<br/>"required": [<br/>"answer"<br/>]<br/>} |
|
|
||||||
| `strict` | *OptionalNullable[bool]* | :heavy_minus_sign: | Enable strict schema adherence | false |
|
|
||||||
@@ -1,11 +0,0 @@
|
|||||||
# Logprob
|
|
||||||
|
|
||||||
|
|
||||||
## Fields
|
|
||||||
|
|
||||||
| Field | Type | Required | Description |
|
|
||||||
| ---------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------- |
|
|
||||||
| `token` | *str* | :heavy_check_mark: | N/A |
|
|
||||||
| `bytes_` | List[*float*] | :heavy_check_mark: | N/A |
|
|
||||||
| `logprob` | *float* | :heavy_check_mark: | N/A |
|
|
||||||
| `top_logprobs` | List[[components.ResponseOutputTextTopLogprob](../components/responseoutputtexttoplogprob.md)] | :heavy_check_mark: | N/A |
|
|
||||||
@@ -1,37 +0,0 @@
|
|||||||
# Message
|
|
||||||
|
|
||||||
Chat completion message with role-based discrimination
|
|
||||||
|
|
||||||
|
|
||||||
## Supported Types
|
|
||||||
|
|
||||||
### `components.SystemMessage`
|
|
||||||
|
|
||||||
```python
|
|
||||||
value: components.SystemMessage = /* values here */
|
|
||||||
```
|
|
||||||
|
|
||||||
### `components.UserMessage`
|
|
||||||
|
|
||||||
```python
|
|
||||||
value: components.UserMessage = /* values here */
|
|
||||||
```
|
|
||||||
|
|
||||||
### `components.DeveloperMessage`
|
|
||||||
|
|
||||||
```python
|
|
||||||
value: components.DeveloperMessage = /* values here */
|
|
||||||
```
|
|
||||||
|
|
||||||
### `components.AssistantMessage`
|
|
||||||
|
|
||||||
```python
|
|
||||||
value: components.AssistantMessage = /* values here */
|
|
||||||
```
|
|
||||||
|
|
||||||
### `components.ToolResponseMessage`
|
|
||||||
|
|
||||||
```python
|
|
||||||
value: components.ToolResponseMessage = /* values here */
|
|
||||||
```
|
|
||||||
|
|
||||||
@@ -1,11 +0,0 @@
|
|||||||
# NamedToolChoice
|
|
||||||
|
|
||||||
Named tool choice for specific function
|
|
||||||
|
|
||||||
|
|
||||||
## Fields
|
|
||||||
|
|
||||||
| Field | Type | Required | Description |
|
|
||||||
| ------------------------------------------------------------------------------ | ------------------------------------------------------------------------------ | ------------------------------------------------------------------------------ | ------------------------------------------------------------------------------ |
|
|
||||||
| `type` | [components.NamedToolChoiceType](../components/namedtoolchoicetype.md) | :heavy_check_mark: | N/A |
|
|
||||||
| `function` | [components.NamedToolChoiceFunction](../components/namedtoolchoicefunction.md) | :heavy_check_mark: | N/A |
|
|
||||||
@@ -1,8 +0,0 @@
|
|||||||
# NamedToolChoiceFunction
|
|
||||||
|
|
||||||
|
|
||||||
## Fields
|
|
||||||
|
|
||||||
| Field | Type | Required | Description | Example |
|
|
||||||
| --------------------- | --------------------- | --------------------- | --------------------- | --------------------- |
|
|
||||||
| `name` | *str* | :heavy_check_mark: | Function name to call | get_weather |
|
|
||||||
@@ -1,8 +0,0 @@
|
|||||||
# NamedToolChoiceType
|
|
||||||
|
|
||||||
|
|
||||||
## Values
|
|
||||||
|
|
||||||
| Name | Value |
|
|
||||||
| ---------- | ---------- |
|
|
||||||
| `FUNCTION` | function |
|
|
||||||
@@ -1,17 +0,0 @@
|
|||||||
# Only
|
|
||||||
|
|
||||||
|
|
||||||
## Supported Types
|
|
||||||
|
|
||||||
### `components.ProviderName`
|
|
||||||
|
|
||||||
```python
|
|
||||||
value: components.ProviderName = /* values here */
|
|
||||||
```
|
|
||||||
|
|
||||||
### `str`
|
|
||||||
|
|
||||||
```python
|
|
||||||
value: str = /* values here */
|
|
||||||
```
|
|
||||||
|
|
||||||
@@ -1,12 +0,0 @@
|
|||||||
# OpenAIResponsesIncludable
|
|
||||||
|
|
||||||
|
|
||||||
## Values
|
|
||||||
|
|
||||||
| Name | Value |
|
|
||||||
| --------------------------------------- | --------------------------------------- |
|
|
||||||
| `FILE_SEARCH_CALL_RESULTS` | file_search_call.results |
|
|
||||||
| `MESSAGE_INPUT_IMAGE_IMAGE_URL` | message.input_image.image_url |
|
|
||||||
| `COMPUTER_CALL_OUTPUT_OUTPUT_IMAGE_URL` | computer_call_output.output.image_url |
|
|
||||||
| `REASONING_ENCRYPTED_CONTENT` | reasoning.encrypted_content |
|
|
||||||
| `CODE_INTERPRETER_CALL_OUTPUTS` | code_interpreter_call.outputs |
|
|
||||||
@@ -1,8 +0,0 @@
|
|||||||
# OpenAIResponsesIncompleteDetails
|
|
||||||
|
|
||||||
|
|
||||||
## Fields
|
|
||||||
|
|
||||||
| Field | Type | Required | Description |
|
|
||||||
| ------------------------------------------------------ | ------------------------------------------------------ | ------------------------------------------------------ | ------------------------------------------------------ |
|
|
||||||
| `reason` | [Optional[components.Reason]](../components/reason.md) | :heavy_minus_sign: | N/A |
|
|
||||||
@@ -1,29 +0,0 @@
|
|||||||
# OpenAIResponsesInputContent1
|
|
||||||
|
|
||||||
|
|
||||||
## Supported Types
|
|
||||||
|
|
||||||
### `components.ResponseInputText`
|
|
||||||
|
|
||||||
```python
|
|
||||||
value: components.ResponseInputText = /* values here */
|
|
||||||
```
|
|
||||||
|
|
||||||
### `components.ResponseInputImage`
|
|
||||||
|
|
||||||
```python
|
|
||||||
value: components.ResponseInputImage = /* values here */
|
|
||||||
```
|
|
||||||
|
|
||||||
### `components.ResponseInputFile`
|
|
||||||
|
|
||||||
```python
|
|
||||||
value: components.ResponseInputFile = /* values here */
|
|
||||||
```
|
|
||||||
|
|
||||||
### `components.ResponseInputAudio`
|
|
||||||
|
|
||||||
```python
|
|
||||||
value: components.ResponseInputAudio = /* values here */
|
|
||||||
```
|
|
||||||
|
|
||||||
@@ -1,17 +0,0 @@
|
|||||||
# OpenAIResponsesInputContent2
|
|
||||||
|
|
||||||
|
|
||||||
## Supported Types
|
|
||||||
|
|
||||||
### `List[components.OpenAIResponsesInputContent1]`
|
|
||||||
|
|
||||||
```python
|
|
||||||
value: List[components.OpenAIResponsesInputContent1] = /* values here */
|
|
||||||
```
|
|
||||||
|
|
||||||
### `str`
|
|
||||||
|
|
||||||
```python
|
|
||||||
value: str = /* values here */
|
|
||||||
```
|
|
||||||
|
|
||||||
@@ -1,29 +0,0 @@
|
|||||||
# OpenAIResponsesInputContent3
|
|
||||||
|
|
||||||
|
|
||||||
## Supported Types
|
|
||||||
|
|
||||||
### `components.ResponseInputText`
|
|
||||||
|
|
||||||
```python
|
|
||||||
value: components.ResponseInputText = /* values here */
|
|
||||||
```
|
|
||||||
|
|
||||||
### `components.ResponseInputImage`
|
|
||||||
|
|
||||||
```python
|
|
||||||
value: components.ResponseInputImage = /* values here */
|
|
||||||
```
|
|
||||||
|
|
||||||
### `components.ResponseInputFile`
|
|
||||||
|
|
||||||
```python
|
|
||||||
value: components.ResponseInputFile = /* values here */
|
|
||||||
```
|
|
||||||
|
|
||||||
### `components.ResponseInputAudio`
|
|
||||||
|
|
||||||
```python
|
|
||||||
value: components.ResponseInputAudio = /* values here */
|
|
||||||
```
|
|
||||||
|
|
||||||
@@ -1,13 +0,0 @@
|
|||||||
# OpenAIResponsesInputFunctionCall
|
|
||||||
|
|
||||||
|
|
||||||
## Fields
|
|
||||||
|
|
||||||
| Field | Type | Required | Description | Example |
|
|
||||||
| -------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------- |
|
|
||||||
| `type` | [components.OpenAIResponsesInputTypeFunctionCall](../components/openairesponsesinputtypefunctioncall.md) | :heavy_check_mark: | N/A | |
|
|
||||||
| `call_id` | *str* | :heavy_check_mark: | N/A | |
|
|
||||||
| `name` | *str* | :heavy_check_mark: | N/A | |
|
|
||||||
| `arguments` | *str* | :heavy_check_mark: | N/A | |
|
|
||||||
| `id` | *Optional[str]* | :heavy_minus_sign: | N/A | |
|
|
||||||
| `status` | [OptionalNullable[components.ToolCallStatus]](../components/toolcallstatus.md) | :heavy_minus_sign: | N/A | completed |
|
|
||||||
@@ -1,12 +0,0 @@
|
|||||||
# OpenAIResponsesInputFunctionCallOutput
|
|
||||||
|
|
||||||
|
|
||||||
## Fields
|
|
||||||
|
|
||||||
| Field | Type | Required | Description | Example |
|
|
||||||
| -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- |
|
|
||||||
| `type` | [components.OpenAIResponsesInputTypeFunctionCallOutput](../components/openairesponsesinputtypefunctioncalloutput.md) | :heavy_check_mark: | N/A | |
|
|
||||||
| `id` | *OptionalNullable[str]* | :heavy_minus_sign: | N/A | |
|
|
||||||
| `call_id` | *str* | :heavy_check_mark: | N/A | |
|
|
||||||
| `output` | *str* | :heavy_check_mark: | N/A | |
|
|
||||||
| `status` | [OptionalNullable[components.ToolCallStatus]](../components/toolcallstatus.md) | :heavy_minus_sign: | N/A | completed |
|
|
||||||
@@ -1,10 +0,0 @@
|
|||||||
# OpenAIResponsesInputMessage1
|
|
||||||
|
|
||||||
|
|
||||||
## Fields
|
|
||||||
|
|
||||||
| Field | Type | Required | Description |
|
|
||||||
| ---------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------- |
|
|
||||||
| `type` | [Optional[components.OpenAIResponsesInputTypeMessage1]](../components/openairesponsesinputtypemessage1.md) | :heavy_minus_sign: | N/A |
|
|
||||||
| `role` | [components.OpenAIResponsesInputRoleUnion1](../components/openairesponsesinputroleunion1.md) | :heavy_check_mark: | N/A |
|
|
||||||
| `content` | [components.OpenAIResponsesInputContent2](../components/openairesponsesinputcontent2.md) | :heavy_check_mark: | N/A |
|
|
||||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user