fix: openrouter provider (#9166)
* fix: openrouter provider * just stage publish api * web openapi
This commit is contained in:
@@ -25650,6 +25650,9 @@
|
||||
{
|
||||
"$ref": "#/components/schemas/BedrockModelSettings"
|
||||
},
|
||||
{
|
||||
"$ref": "#/components/schemas/OpenRouterModelSettings"
|
||||
},
|
||||
{
|
||||
"$ref": "#/components/schemas/ChatGPTOAuthModelSettings"
|
||||
}
|
||||
@@ -25666,6 +25669,7 @@
|
||||
"google_vertex": "#/components/schemas/GoogleVertexModelSettings",
|
||||
"groq": "#/components/schemas/GroqModelSettings",
|
||||
"openai": "#/components/schemas/OpenAIModelSettings",
|
||||
"openrouter": "#/components/schemas/OpenRouterModelSettings",
|
||||
"together": "#/components/schemas/TogetherModelSettings",
|
||||
"xai": "#/components/schemas/XAIModelSettings",
|
||||
"zai": "#/components/schemas/ZAIModelSettings"
|
||||
@@ -29639,6 +29643,9 @@
|
||||
{
|
||||
"$ref": "#/components/schemas/BedrockModelSettings"
|
||||
},
|
||||
{
|
||||
"$ref": "#/components/schemas/OpenRouterModelSettings"
|
||||
},
|
||||
{
|
||||
"$ref": "#/components/schemas/ChatGPTOAuthModelSettings"
|
||||
}
|
||||
@@ -29655,6 +29662,7 @@
|
||||
"google_vertex": "#/components/schemas/GoogleVertexModelSettings",
|
||||
"groq": "#/components/schemas/GroqModelSettings",
|
||||
"openai": "#/components/schemas/OpenAIModelSettings",
|
||||
"openrouter": "#/components/schemas/OpenRouterModelSettings",
|
||||
"together": "#/components/schemas/TogetherModelSettings",
|
||||
"xai": "#/components/schemas/XAIModelSettings",
|
||||
"zai": "#/components/schemas/ZAIModelSettings"
|
||||
@@ -29755,6 +29763,9 @@
|
||||
{
|
||||
"$ref": "#/components/schemas/BedrockModelSettings"
|
||||
},
|
||||
{
|
||||
"$ref": "#/components/schemas/OpenRouterModelSettings"
|
||||
},
|
||||
{
|
||||
"$ref": "#/components/schemas/ChatGPTOAuthModelSettings"
|
||||
}
|
||||
@@ -29771,6 +29782,7 @@
|
||||
"google_vertex": "#/components/schemas/GoogleVertexModelSettings",
|
||||
"groq": "#/components/schemas/GroqModelSettings",
|
||||
"openai": "#/components/schemas/OpenAIModelSettings",
|
||||
"openrouter": "#/components/schemas/OpenRouterModelSettings",
|
||||
"together": "#/components/schemas/TogetherModelSettings",
|
||||
"xai": "#/components/schemas/XAIModelSettings",
|
||||
"zai": "#/components/schemas/ZAIModelSettings"
|
||||
@@ -30887,6 +30899,9 @@
|
||||
{
|
||||
"$ref": "#/components/schemas/BedrockModelSettings"
|
||||
},
|
||||
{
|
||||
"$ref": "#/components/schemas/OpenRouterModelSettings"
|
||||
},
|
||||
{
|
||||
"$ref": "#/components/schemas/ChatGPTOAuthModelSettings"
|
||||
}
|
||||
@@ -30903,6 +30918,7 @@
|
||||
"google_vertex": "#/components/schemas/GoogleVertexModelSettings",
|
||||
"groq": "#/components/schemas/GroqModelSettings",
|
||||
"openai": "#/components/schemas/OpenAIModelSettings",
|
||||
"openrouter": "#/components/schemas/OpenRouterModelSettings",
|
||||
"together": "#/components/schemas/TogetherModelSettings",
|
||||
"xai": "#/components/schemas/XAIModelSettings",
|
||||
"zai": "#/components/schemas/ZAIModelSettings"
|
||||
@@ -35262,6 +35278,9 @@
|
||||
{
|
||||
"$ref": "#/components/schemas/BedrockModelSettings"
|
||||
},
|
||||
{
|
||||
"$ref": "#/components/schemas/OpenRouterModelSettings"
|
||||
},
|
||||
{
|
||||
"$ref": "#/components/schemas/ChatGPTOAuthModelSettings"
|
||||
}
|
||||
@@ -35278,6 +35297,7 @@
|
||||
"google_vertex": "#/components/schemas/GoogleVertexModelSettings",
|
||||
"groq": "#/components/schemas/GroqModelSettings",
|
||||
"openai": "#/components/schemas/OpenAIModelSettings",
|
||||
"openrouter": "#/components/schemas/OpenRouterModelSettings",
|
||||
"together": "#/components/schemas/TogetherModelSettings",
|
||||
"xai": "#/components/schemas/XAIModelSettings",
|
||||
"zai": "#/components/schemas/ZAIModelSettings"
|
||||
@@ -39128,6 +39148,68 @@
|
||||
"type": "object",
|
||||
"title": "OpenAIReasoning"
|
||||
},
|
||||
"OpenRouterModelSettings": {
|
||||
"properties": {
|
||||
"max_output_tokens": {
|
||||
"type": "integer",
|
||||
"title": "Max Output Tokens",
|
||||
"description": "The maximum number of tokens the model can generate.",
|
||||
"default": 4096
|
||||
},
|
||||
"parallel_tool_calls": {
|
||||
"type": "boolean",
|
||||
"title": "Parallel Tool Calls",
|
||||
"description": "Whether to enable parallel tool calling.",
|
||||
"default": false
|
||||
},
|
||||
"provider_type": {
|
||||
"type": "string",
|
||||
"const": "openrouter",
|
||||
"title": "Provider Type",
|
||||
"description": "The type of the provider.",
|
||||
"default": "openrouter"
|
||||
},
|
||||
"temperature": {
|
||||
"type": "number",
|
||||
"title": "Temperature",
|
||||
"description": "The temperature of the model.",
|
||||
"default": 0.7
|
||||
},
|
||||
"response_format": {
|
||||
"anyOf": [
|
||||
{
|
||||
"oneOf": [
|
||||
{
|
||||
"$ref": "#/components/schemas/TextResponseFormat"
|
||||
},
|
||||
{
|
||||
"$ref": "#/components/schemas/JsonSchemaResponseFormat"
|
||||
},
|
||||
{
|
||||
"$ref": "#/components/schemas/JsonObjectResponseFormat"
|
||||
}
|
||||
],
|
||||
"discriminator": {
|
||||
"propertyName": "type",
|
||||
"mapping": {
|
||||
"json_object": "#/components/schemas/JsonObjectResponseFormat",
|
||||
"json_schema": "#/components/schemas/JsonSchemaResponseFormat",
|
||||
"text": "#/components/schemas/TextResponseFormat"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"type": "null"
|
||||
}
|
||||
],
|
||||
"title": "Response Format",
|
||||
"description": "The response format for the model."
|
||||
}
|
||||
},
|
||||
"type": "object",
|
||||
"title": "OpenRouterModelSettings",
|
||||
"description": "OpenRouter model configuration (OpenAI-compatible)."
|
||||
},
|
||||
"Organization": {
|
||||
"properties": {
|
||||
"id": {
|
||||
@@ -45125,6 +45207,9 @@
|
||||
{
|
||||
"$ref": "#/components/schemas/BedrockModelSettings"
|
||||
},
|
||||
{
|
||||
"$ref": "#/components/schemas/OpenRouterModelSettings"
|
||||
},
|
||||
{
|
||||
"$ref": "#/components/schemas/ChatGPTOAuthModelSettings"
|
||||
}
|
||||
@@ -45141,6 +45226,7 @@
|
||||
"google_vertex": "#/components/schemas/GoogleVertexModelSettings",
|
||||
"groq": "#/components/schemas/GroqModelSettings",
|
||||
"openai": "#/components/schemas/OpenAIModelSettings",
|
||||
"openrouter": "#/components/schemas/OpenRouterModelSettings",
|
||||
"together": "#/components/schemas/TogetherModelSettings",
|
||||
"xai": "#/components/schemas/XAIModelSettings",
|
||||
"zai": "#/components/schemas/ZAIModelSettings"
|
||||
@@ -46513,6 +46599,9 @@
|
||||
{
|
||||
"$ref": "#/components/schemas/BedrockModelSettings"
|
||||
},
|
||||
{
|
||||
"$ref": "#/components/schemas/OpenRouterModelSettings"
|
||||
},
|
||||
{
|
||||
"$ref": "#/components/schemas/ChatGPTOAuthModelSettings"
|
||||
}
|
||||
@@ -46529,6 +46618,7 @@
|
||||
"google_vertex": "#/components/schemas/GoogleVertexModelSettings",
|
||||
"groq": "#/components/schemas/GroqModelSettings",
|
||||
"openai": "#/components/schemas/OpenAIModelSettings",
|
||||
"openrouter": "#/components/schemas/OpenRouterModelSettings",
|
||||
"together": "#/components/schemas/TogetherModelSettings",
|
||||
"xai": "#/components/schemas/XAIModelSettings",
|
||||
"zai": "#/components/schemas/ZAIModelSettings"
|
||||
|
||||
Reference in New Issue
Block a user