mirror of
https://github.com/wassname/openrouter-python-sdk-retry-errors.git
synced 2026-07-29 11:23:49 +08:00
chore: update OpenAPI spec from monorepo (#421)
Co-authored-by: OpenRouter SDK Bot <sdk-bot@openrouter.ai>
This commit is contained in:
co-authored by
OpenRouter SDK Bot
parent
dfebb7ca0d
commit
e62415b7ce
+135
-3
@@ -4051,7 +4051,7 @@ components:
|
||||
- recraft
|
||||
- reka
|
||||
- relace
|
||||
- sakana-ai
|
||||
- sakana
|
||||
- sambanova
|
||||
- seed
|
||||
- siliconflow
|
||||
@@ -18544,7 +18544,7 @@ components:
|
||||
additionalProperties:
|
||||
nullable: true
|
||||
type: object
|
||||
sakana-ai:
|
||||
sakana:
|
||||
additionalProperties:
|
||||
nullable: true
|
||||
type: object
|
||||
@@ -21267,6 +21267,58 @@ components:
|
||||
$ref: '#/components/schemas/SubagentNestedTool'
|
||||
type: array
|
||||
type: object
|
||||
SubmitGenerationFeedbackRequest:
|
||||
description: Structured feedback about a specific generation
|
||||
example:
|
||||
category: incorrect_response
|
||||
comment: The model repeated the same paragraph three times.
|
||||
generation_id: gen-3bhGkxlo4XFrqiabUM7NDtwDzWwG
|
||||
properties:
|
||||
category:
|
||||
description: The category of feedback being reported
|
||||
enum:
|
||||
- latency
|
||||
- incoherence
|
||||
- incorrect_response
|
||||
- formatting
|
||||
- billing
|
||||
- api_error
|
||||
- other
|
||||
example: incorrect_response
|
||||
type: string
|
||||
comment:
|
||||
description: An optional free-text comment describing the feedback
|
||||
example: The model repeated the same paragraph three times.
|
||||
maxLength: 1000
|
||||
type: string
|
||||
generation_id:
|
||||
description: The generation to submit feedback on
|
||||
example: gen-3bhGkxlo4XFrqiabUM7NDtwDzWwG
|
||||
minLength: 1
|
||||
type: string
|
||||
required:
|
||||
- generation_id
|
||||
- category
|
||||
type: object
|
||||
SubmitGenerationFeedbackResponse:
|
||||
description: Confirmation that the feedback was recorded
|
||||
example:
|
||||
data:
|
||||
success: true
|
||||
properties:
|
||||
data:
|
||||
properties:
|
||||
success:
|
||||
const: true
|
||||
description: Whether the feedback was recorded
|
||||
example: true
|
||||
type: boolean
|
||||
required:
|
||||
- success
|
||||
type: object
|
||||
required:
|
||||
- data
|
||||
type: object
|
||||
SupportedParameters:
|
||||
additionalProperties:
|
||||
$ref: '#/components/schemas/CapabilityDescriptor'
|
||||
@@ -24893,7 +24945,7 @@ paths:
|
||||
- recraft
|
||||
- reka
|
||||
- relace
|
||||
- sakana-ai
|
||||
- sakana
|
||||
- sambanova
|
||||
- seed
|
||||
- siliconflow
|
||||
@@ -27438,6 +27490,86 @@ paths:
|
||||
summary: Get stored prompt and completion content for a generation
|
||||
tags:
|
||||
- Generations
|
||||
/generation/feedback:
|
||||
post:
|
||||
description: >-
|
||||
Submit structured feedback on a generation the authenticated user made. [Management
|
||||
key](/docs/guides/overview/auth/management-api-keys) required.
|
||||
operationId: submitGenerationFeedback
|
||||
requestBody:
|
||||
content:
|
||||
application/json:
|
||||
example:
|
||||
category: incorrect_response
|
||||
comment: The model repeated the same paragraph three times.
|
||||
generation_id: gen-3bhGkxlo4XFrqiabUM7NDtwDzWwG
|
||||
schema:
|
||||
$ref: '#/components/schemas/SubmitGenerationFeedbackRequest'
|
||||
required: true
|
||||
responses:
|
||||
'200':
|
||||
content:
|
||||
application/json:
|
||||
example:
|
||||
data:
|
||||
success: true
|
||||
schema:
|
||||
$ref: '#/components/schemas/SubmitGenerationFeedbackResponse'
|
||||
description: Feedback recorded successfully
|
||||
'400':
|
||||
content:
|
||||
application/json:
|
||||
example:
|
||||
error:
|
||||
code: 400
|
||||
message: Invalid request parameters
|
||||
schema:
|
||||
$ref: '#/components/schemas/BadRequestResponse'
|
||||
description: Bad Request - Invalid request parameters or malformed input
|
||||
'401':
|
||||
content:
|
||||
application/json:
|
||||
example:
|
||||
error:
|
||||
code: 401
|
||||
message: Missing Authentication header
|
||||
schema:
|
||||
$ref: '#/components/schemas/UnauthorizedResponse'
|
||||
description: Unauthorized - Authentication required or invalid credentials
|
||||
'404':
|
||||
content:
|
||||
application/json:
|
||||
example:
|
||||
error:
|
||||
code: 404
|
||||
message: Resource not found
|
||||
schema:
|
||||
$ref: '#/components/schemas/NotFoundResponse'
|
||||
description: Not Found - Resource does not exist
|
||||
'429':
|
||||
content:
|
||||
application/json:
|
||||
example:
|
||||
error:
|
||||
code: 429
|
||||
message: Rate limit exceeded
|
||||
schema:
|
||||
$ref: '#/components/schemas/TooManyRequestsResponse'
|
||||
description: Too Many Requests - Rate limit exceeded
|
||||
'500':
|
||||
content:
|
||||
application/json:
|
||||
example:
|
||||
error:
|
||||
code: 500
|
||||
message: Internal Server Error
|
||||
schema:
|
||||
$ref: '#/components/schemas/InternalServerResponse'
|
||||
description: Internal Server Error - Unexpected server error
|
||||
summary: Submit feedback for a generation
|
||||
tags:
|
||||
- Generations
|
||||
x-speakeasy-name-override: submitFeedback
|
||||
/guardrails:
|
||||
get:
|
||||
description: >-
|
||||
|
||||
Reference in New Issue
Block a user