mirror of
https://github.com/wassname/openrouter-python-sdk-retry-errors.git
synced 2026-07-31 12:30:30 +08:00
chore: update OpenAPI spec from monorepo (#409)
Co-authored-by: OpenRouter SDK Bot <sdk-bot@openrouter.ai>
This commit is contained in:
co-authored by
OpenRouter SDK Bot
parent
05e372cf53
commit
1da6f0d903
@@ -9829,6 +9829,35 @@ components:
|
|||||||
- type
|
- type
|
||||||
- error
|
- error
|
||||||
type: object
|
type: object
|
||||||
|
ImageGenTextChunkEvent:
|
||||||
|
description: Emitted when a text chunk becomes available during streaming generation of text-based formats (e.g. SVG)
|
||||||
|
example:
|
||||||
|
phase: content
|
||||||
|
text: <svg xmlns="http://www.w3.org/2000/svg">
|
||||||
|
type: image_generation.text_chunk
|
||||||
|
properties:
|
||||||
|
phase:
|
||||||
|
description: >-
|
||||||
|
The generation phase this chunk belongs to. `content` is the renderable output; `reasoning` and `draft` are
|
||||||
|
intermediate provider phases.
|
||||||
|
enum:
|
||||||
|
- content
|
||||||
|
- reasoning
|
||||||
|
- draft
|
||||||
|
type: string
|
||||||
|
text:
|
||||||
|
description: A text fragment of the image being generated (e.g. partial SVG markup)
|
||||||
|
type: string
|
||||||
|
type:
|
||||||
|
description: The event type
|
||||||
|
enum:
|
||||||
|
- image_generation.text_chunk
|
||||||
|
type: string
|
||||||
|
required:
|
||||||
|
- type
|
||||||
|
- text
|
||||||
|
- phase
|
||||||
|
type: object
|
||||||
ImageModelArchitecture:
|
ImageModelArchitecture:
|
||||||
example:
|
example:
|
||||||
input_modalities:
|
input_modalities:
|
||||||
@@ -10032,6 +10061,7 @@ components:
|
|||||||
data:
|
data:
|
||||||
anyOf:
|
anyOf:
|
||||||
- $ref: '#/components/schemas/ImageGenPartialImageEvent'
|
- $ref: '#/components/schemas/ImageGenPartialImageEvent'
|
||||||
|
- $ref: '#/components/schemas/ImageGenTextChunkEvent'
|
||||||
- $ref: '#/components/schemas/ImageGenCompletedEvent'
|
- $ref: '#/components/schemas/ImageGenCompletedEvent'
|
||||||
- $ref: '#/components/schemas/ImageGenStreamErrorEvent'
|
- $ref: '#/components/schemas/ImageGenStreamErrorEvent'
|
||||||
required:
|
required:
|
||||||
|
|||||||
Reference in New Issue
Block a user