mirror of
https://github.com/wassname/openrouter-python-sdk-retry-errors.git
synced 2026-07-30 12:20:57 +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:
+119
-1125
File diff suppressed because it is too large
Load Diff
+1
-1
@@ -32,7 +32,7 @@ generation:
|
||||
skipResponseBodyAssertions: false
|
||||
preApplyUnionDiscriminators: true
|
||||
python:
|
||||
version: 0.8.0
|
||||
version: 0.8.1
|
||||
additionalDependencies:
|
||||
dev: {}
|
||||
main: {}
|
||||
|
||||
+41
-134
@@ -3826,6 +3826,40 @@ components:
|
||||
error:
|
||||
code: 408
|
||||
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:
|
||||
type: object
|
||||
properties:
|
||||
@@ -13332,28 +13366,6 @@ components:
|
||||
model: openai/gpt-4
|
||||
temperature: 0.7
|
||||
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:
|
||||
type: object
|
||||
properties:
|
||||
@@ -14880,126 +14892,21 @@ paths:
|
||||
$ref: '#/components/schemas/InternalServerResponse'
|
||||
/credits/coinbase:
|
||||
post:
|
||||
security:
|
||||
- bearer: []
|
||||
security: []
|
||||
x-speakeasy-name-override: createCoinbaseCharge
|
||||
deprecated: true
|
||||
tags:
|
||||
- Credits
|
||||
summary: Create a Coinbase charge for crypto payment
|
||||
summary: Deprecated Coinbase Commerce charge endpoint
|
||||
operationId: createCoinbaseCharge
|
||||
description: Create a Coinbase charge for crypto payment
|
||||
requestBody:
|
||||
content:
|
||||
application/json:
|
||||
schema:
|
||||
$ref: '#/components/schemas/CreateChargeRequest'
|
||||
required: true
|
||||
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.
|
||||
responses:
|
||||
'200':
|
||||
description: Returns the calldata to fulfill the transaction
|
||||
'410':
|
||||
description: Gone - Coinbase Commerce charge creation has been removed
|
||||
content:
|
||||
application/json:
|
||||
schema:
|
||||
type: object
|
||||
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'
|
||||
$ref: '#/components/schemas/GoneResponse'
|
||||
/embeddings:
|
||||
post:
|
||||
x-speakeasy-name-override: generate
|
||||
|
||||
+41
-135
@@ -3847,6 +3847,40 @@ components:
|
||||
error:
|
||||
code: 408
|
||||
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:
|
||||
type: object
|
||||
properties:
|
||||
@@ -13347,29 +13381,6 @@ components:
|
||||
model: openai/gpt-4
|
||||
temperature: 0.7
|
||||
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:
|
||||
type: object
|
||||
properties:
|
||||
@@ -14929,126 +14940,21 @@ paths:
|
||||
- $ref: "#/components/parameters/AppCategories"
|
||||
/credits/coinbase:
|
||||
post:
|
||||
security:
|
||||
- bearer: []
|
||||
security: []
|
||||
x-speakeasy-name-override: createCoinbaseCharge
|
||||
deprecated: true
|
||||
tags:
|
||||
- Credits
|
||||
summary: Create a Coinbase charge for crypto payment
|
||||
summary: Deprecated Coinbase Commerce charge endpoint
|
||||
operationId: createCoinbaseCharge
|
||||
description: Create a Coinbase charge for crypto payment
|
||||
requestBody:
|
||||
content:
|
||||
application/json:
|
||||
schema:
|
||||
$ref: '#/components/schemas/CreateChargeRequest'
|
||||
required: true
|
||||
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.
|
||||
responses:
|
||||
'200':
|
||||
description: Returns the calldata to fulfill the transaction
|
||||
'410':
|
||||
description: Gone - Coinbase Commerce charge creation has been removed
|
||||
content:
|
||||
application/json:
|
||||
schema:
|
||||
type: object
|
||||
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'
|
||||
$ref: '#/components/schemas/GoneResponse'
|
||||
parameters:
|
||||
- $ref: "#/components/parameters/AppIdentifier"
|
||||
- $ref: "#/components/parameters/AppDisplayName"
|
||||
|
||||
@@ -1,15 +1,9 @@
|
||||
speakeasyVersion: 1.680.0
|
||||
sources:
|
||||
-OAS:
|
||||
sourceNamespace: open-router-chat-completions-api
|
||||
sourceRevisionDigest: sha256:01256c8494de6bfc13c36d82ae316a6a13d402194f844618bcd4d59e34f325f3
|
||||
sourceBlobDigest: sha256:4c80e48fd5e1cd030e68d664eb93984b4d5946867252ff1755a2bd2a05eccd4e
|
||||
tags:
|
||||
- latest
|
||||
OpenRouter API:
|
||||
sourceNamespace: open-router-chat-completions-api
|
||||
sourceRevisionDigest: sha256:c6e52cd6931f7230cd3c226f7482b02dc0dfd682cd14540deb6f721fc0fe9d83
|
||||
sourceBlobDigest: sha256:01ccba21dd9b8695a4071a9f75c329c4c57fdc2c8dfc0ee189ddb2e5ea1dfecb
|
||||
sourceRevisionDigest: sha256:0795e89fdc7634204a5e1c93c441069d7bfb349fc1c7f43a53db24f0803c72fa
|
||||
sourceBlobDigest: sha256:bb920e0d3ed7fb2c204d06aa436d9ce9a3635727d3a6147a7a2798333458d12a
|
||||
tags:
|
||||
- latest
|
||||
- 1.0.0
|
||||
@@ -17,10 +11,10 @@ targets:
|
||||
open-router:
|
||||
source: OpenRouter API
|
||||
sourceNamespace: open-router-chat-completions-api
|
||||
sourceRevisionDigest: sha256:c6e52cd6931f7230cd3c226f7482b02dc0dfd682cd14540deb6f721fc0fe9d83
|
||||
sourceBlobDigest: sha256:01ccba21dd9b8695a4071a9f75c329c4c57fdc2c8dfc0ee189ddb2e5ea1dfecb
|
||||
sourceRevisionDigest: sha256:0795e89fdc7634204a5e1c93c441069d7bfb349fc1c7f43a53db24f0803c72fa
|
||||
sourceBlobDigest: sha256:bb920e0d3ed7fb2c204d06aa436d9ce9a3635727d3a6147a7a2798333458d12a
|
||||
codeSamplesNamespace: open-router-python-code-samples
|
||||
codeSamplesRevisionDigest: sha256:1a98221b7ae69cb68277c44cbbaac0c80b5260821b687848445bbc6dddc26894
|
||||
codeSamplesRevisionDigest: sha256:c368e0601d6b667625dd99ffcd53e69e3dc98a4b518a45444add6457dde83b22
|
||||
workflow:
|
||||
workflowVersion: 1.0.0
|
||||
speakeasyVersion: 1.680.0
|
||||
|
||||
Reference in New Issue
Block a user