mirror of
https://github.com/wassname/openrouter-python-sdk-retry-errors.git
synced 2026-07-31 12:30:30 +08:00
Compare commits
1
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
1f5bb94368 |
+61
-25
@@ -3511,6 +3511,7 @@ components:
|
|||||||
- function
|
- function
|
||||||
type: object
|
type: object
|
||||||
- $ref: '#/components/schemas/DatetimeServerTool'
|
- $ref: '#/components/schemas/DatetimeServerTool'
|
||||||
|
- $ref: '#/components/schemas/ImageGenerationServerTool_OpenRouter'
|
||||||
- $ref: '#/components/schemas/ChatSearchModelsServerTool'
|
- $ref: '#/components/schemas/ChatSearchModelsServerTool'
|
||||||
- $ref: '#/components/schemas/OpenRouterWebSearchServerTool'
|
- $ref: '#/components/schemas/OpenRouterWebSearchServerTool'
|
||||||
- $ref: '#/components/schemas/ChatWebSearchShorthand'
|
- $ref: '#/components/schemas/ChatWebSearchShorthand'
|
||||||
@@ -3673,20 +3674,7 @@ components:
|
|||||||
nullable: true
|
nullable: true
|
||||||
type: number
|
type: number
|
||||||
image_config:
|
image_config:
|
||||||
additionalProperties:
|
$ref: '#/components/schemas/ImageConfig'
|
||||||
anyOf:
|
|
||||||
- type: string
|
|
||||||
- format: double
|
|
||||||
type: number
|
|
||||||
- items:
|
|
||||||
nullable: true
|
|
||||||
type: array
|
|
||||||
description: >-
|
|
||||||
Provider-specific image configuration options. Keys and values vary by model/provider. See
|
|
||||||
https://openrouter.ai/docs/guides/overview/multimodal/image-generation for more details.
|
|
||||||
example:
|
|
||||||
aspect_ratio: '16:9'
|
|
||||||
type: object
|
|
||||||
logit_bias:
|
logit_bias:
|
||||||
additionalProperties:
|
additionalProperties:
|
||||||
format: double
|
format: double
|
||||||
@@ -5775,6 +5763,22 @@ components:
|
|||||||
example: monthly
|
example: monthly
|
||||||
nullable: true
|
nullable: true
|
||||||
type: string
|
type: string
|
||||||
|
ImageConfig:
|
||||||
|
additionalProperties:
|
||||||
|
anyOf:
|
||||||
|
- type: string
|
||||||
|
- format: double
|
||||||
|
type: number
|
||||||
|
- items:
|
||||||
|
nullable: true
|
||||||
|
type: array
|
||||||
|
description: >-
|
||||||
|
Provider-specific image configuration options. Keys and values vary by model/provider. See
|
||||||
|
https://openrouter.ai/docs/guides/overview/multimodal/image-generation for more details.
|
||||||
|
example:
|
||||||
|
aspect_ratio: '16:9'
|
||||||
|
quality: high
|
||||||
|
type: object
|
||||||
ImageGenCallCompletedEvent:
|
ImageGenCallCompletedEvent:
|
||||||
allOf:
|
allOf:
|
||||||
- $ref: '#/components/schemas/OpenAIResponsesImageGenCallCompleted'
|
- $ref: '#/components/schemas/OpenAIResponsesImageGenCallCompleted'
|
||||||
@@ -5888,6 +5892,46 @@ components:
|
|||||||
required:
|
required:
|
||||||
- type
|
- type
|
||||||
type: object
|
type: object
|
||||||
|
ImageGenerationServerTool_OpenRouter:
|
||||||
|
description: 'OpenRouter built-in server tool: generates images from text prompts using an image generation model'
|
||||||
|
example:
|
||||||
|
parameters:
|
||||||
|
model: openai/gpt-image-1
|
||||||
|
quality: high
|
||||||
|
size: 1024x1024
|
||||||
|
type: openrouter:image_generation
|
||||||
|
properties:
|
||||||
|
parameters:
|
||||||
|
$ref: '#/components/schemas/ImageGenerationServerToolConfig'
|
||||||
|
type:
|
||||||
|
enum:
|
||||||
|
- openrouter:image_generation
|
||||||
|
type: string
|
||||||
|
required:
|
||||||
|
- type
|
||||||
|
type: object
|
||||||
|
ImageGenerationServerToolConfig:
|
||||||
|
additionalProperties:
|
||||||
|
anyOf:
|
||||||
|
- type: string
|
||||||
|
- format: double
|
||||||
|
type: number
|
||||||
|
- items:
|
||||||
|
nullable: true
|
||||||
|
type: array
|
||||||
|
description: >-
|
||||||
|
Configuration for the openrouter:image_generation server tool. Accepts all image_config params (aspect_ratio,
|
||||||
|
quality, size, background, output_format, output_compression, moderation, etc.) plus a model field.
|
||||||
|
example:
|
||||||
|
aspect_ratio: '16:9'
|
||||||
|
model: openai/gpt-image-1
|
||||||
|
quality: high
|
||||||
|
properties:
|
||||||
|
model:
|
||||||
|
description: Which image generation model to use (e.g. "openai/gpt-image-1"). Defaults to "openai/gpt-image-1".
|
||||||
|
example: openai/gpt-image-1
|
||||||
|
type: string
|
||||||
|
type: object
|
||||||
ImageGenerationStatus:
|
ImageGenerationStatus:
|
||||||
enum:
|
enum:
|
||||||
- in_progress
|
- in_progress
|
||||||
@@ -7584,6 +7628,7 @@ components:
|
|||||||
- name
|
- name
|
||||||
type: object
|
type: object
|
||||||
- $ref: '#/components/schemas/DatetimeServerTool'
|
- $ref: '#/components/schemas/DatetimeServerTool'
|
||||||
|
- $ref: '#/components/schemas/ImageGenerationServerTool_OpenRouter'
|
||||||
- $ref: '#/components/schemas/ChatSearchModelsServerTool'
|
- $ref: '#/components/schemas/ChatSearchModelsServerTool'
|
||||||
- $ref: '#/components/schemas/OpenRouterWebSearchServerTool'
|
- $ref: '#/components/schemas/OpenRouterWebSearchServerTool'
|
||||||
type: array
|
type: array
|
||||||
@@ -11316,17 +11361,7 @@ components:
|
|||||||
nullable: true
|
nullable: true
|
||||||
type: number
|
type: number
|
||||||
image_config:
|
image_config:
|
||||||
additionalProperties:
|
$ref: '#/components/schemas/ImageConfig'
|
||||||
anyOf:
|
|
||||||
- type: string
|
|
||||||
- format: double
|
|
||||||
type: number
|
|
||||||
description: >-
|
|
||||||
Provider-specific image configuration options. Keys and values vary by model/provider. See
|
|
||||||
https://openrouter.ai/docs/features/multimodal/image-generation for more details.
|
|
||||||
example:
|
|
||||||
aspect_ratio: '16:9'
|
|
||||||
type: object
|
|
||||||
include:
|
include:
|
||||||
items:
|
items:
|
||||||
$ref: '#/components/schemas/ResponseIncludesEnum'
|
$ref: '#/components/schemas/ResponseIncludesEnum'
|
||||||
@@ -11475,6 +11510,7 @@ components:
|
|||||||
- $ref: '#/components/schemas/ApplyPatchServerTool'
|
- $ref: '#/components/schemas/ApplyPatchServerTool'
|
||||||
- $ref: '#/components/schemas/CustomTool'
|
- $ref: '#/components/schemas/CustomTool'
|
||||||
- $ref: '#/components/schemas/DatetimeServerTool'
|
- $ref: '#/components/schemas/DatetimeServerTool'
|
||||||
|
- $ref: '#/components/schemas/ImageGenerationServerTool_OpenRouter'
|
||||||
- $ref: '#/components/schemas/ChatSearchModelsServerTool'
|
- $ref: '#/components/schemas/ChatSearchModelsServerTool'
|
||||||
- $ref: '#/components/schemas/WebSearchServerTool_OpenRouter'
|
- $ref: '#/components/schemas/WebSearchServerTool_OpenRouter'
|
||||||
type: array
|
type: array
|
||||||
|
|||||||
Reference in New Issue
Block a user