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.11 (#410)
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
1da6f0d903
commit
164490028b
@@ -0,0 +1,14 @@
|
||||
---
|
||||
title: "ImageGenTextChunkEvent"
|
||||
---
|
||||
|
||||
Emitted when a text chunk becomes available during streaming generation of text-based formats (e.g. SVG)
|
||||
|
||||
|
||||
## Fields
|
||||
|
||||
| Field | Type | Required | Description |
|
||||
| ----------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------- |
|
||||
| `phase` | [components.ImageGenTextChunkEventPhase](../components/imagegentextchunkeventphase.mdx) | :heavy_check_mark: | The generation phase this chunk belongs to. `content` is the renderable output; `reasoning` and `draft` are intermediate provider phases. |
|
||||
| `text` | *str* | :heavy_check_mark: | A text fragment of the image being generated (e.g. partial SVG markup) |
|
||||
| `type` | [components.ImageGenTextChunkEventType](../components/imagegentextchunkeventtype.mdx) | :heavy_check_mark: | The event type |
|
||||
@@ -0,0 +1,23 @@
|
||||
---
|
||||
title: "ImageGenTextChunkEventPhase"
|
||||
---
|
||||
|
||||
The generation phase this chunk belongs to. `content` is the renderable output; `reasoning` and `draft` are intermediate provider phases.
|
||||
|
||||
## Example Usage
|
||||
|
||||
```python
|
||||
from openrouter.components import ImageGenTextChunkEventPhase
|
||||
|
||||
# Open enum: unrecognized values are captured as UnrecognizedStr
|
||||
value: ImageGenTextChunkEventPhase = "content"
|
||||
```
|
||||
|
||||
|
||||
## Values
|
||||
|
||||
This is an open enum. Unrecognized values will not fail type checks.
|
||||
|
||||
- `"content"`
|
||||
- `"reasoning"`
|
||||
- `"draft"`
|
||||
@@ -0,0 +1,17 @@
|
||||
---
|
||||
title: "ImageGenTextChunkEventType"
|
||||
---
|
||||
|
||||
The event type
|
||||
|
||||
## Example Usage
|
||||
|
||||
```python
|
||||
from openrouter.components import ImageGenTextChunkEventType
|
||||
value: ImageGenTextChunkEventType = "image_generation.text_chunk"
|
||||
```
|
||||
|
||||
|
||||
## Values
|
||||
|
||||
- `"image_generation.text_chunk"`
|
||||
@@ -10,6 +10,12 @@ title: "ImageStreamingResponseData"
|
||||
value: components.ImageGenPartialImageEvent = /* values here */
|
||||
```
|
||||
|
||||
### `components.ImageGenTextChunkEvent`
|
||||
|
||||
```python
|
||||
value: components.ImageGenTextChunkEvent = /* values here */
|
||||
```
|
||||
|
||||
### `components.ImageGenCompletedEvent`
|
||||
|
||||
```python
|
||||
|
||||
Reference in New Issue
Block a user