mirror of
https://github.com/wassname/openrouter-python-sdk-retry-errors.git
synced 2026-07-30 12:20:57 +08:00
chore: 🐝 Update SDK - Generate (spec change merged) 0.11.17 (#422)
Co-authored-by: speakeasybot <bot@speakeasyapi.dev> Co-authored-by: speakeasy-github[bot] <128539517+speakeasy-github[bot]@users.noreply.github.com>
This commit is contained in:
co-authored by
speakeasybot
speakeasy-github[bot] <128539517+speakeasy-github[bot]@users.noreply.github.com>
parent
e62415b7ce
commit
4a9b45c2a0
+139
-3
@@ -4047,7 +4047,7 @@ components:
|
||||
- recraft
|
||||
- reka
|
||||
- relace
|
||||
- sakana-ai
|
||||
- sakana
|
||||
- sambanova
|
||||
- seed
|
||||
- siliconflow
|
||||
@@ -18440,7 +18440,7 @@ components:
|
||||
additionalProperties:
|
||||
nullable: true
|
||||
type: object
|
||||
sakana-ai:
|
||||
sakana:
|
||||
additionalProperties:
|
||||
nullable: true
|
||||
type: object
|
||||
@@ -21121,6 +21121,59 @@ 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
|
||||
x-speakeasy-unknown-values: allow
|
||||
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'
|
||||
@@ -24710,7 +24763,7 @@ paths:
|
||||
- recraft
|
||||
- reka
|
||||
- relace
|
||||
- sakana-ai
|
||||
- sakana
|
||||
- sambanova
|
||||
- seed
|
||||
- siliconflow
|
||||
@@ -27262,6 +27315,89 @@ paths:
|
||||
- $ref: "#/components/parameters/AppIdentifier"
|
||||
- $ref: "#/components/parameters/AppDisplayName"
|
||||
- $ref: "#/components/parameters/AppCategories"
|
||||
/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
|
||||
parameters:
|
||||
- $ref: "#/components/parameters/AppIdentifier"
|
||||
- $ref: "#/components/parameters/AppDisplayName"
|
||||
- $ref: "#/components/parameters/AppCategories"
|
||||
/guardrails:
|
||||
get:
|
||||
description: >-
|
||||
|
||||
Reference in New Issue
Block a user