|
|
@@ -4098,7 +4098,19 @@
|
|
|
"content": {
|
|
|
"application/json": {
|
|
|
"schema": {
|
|
|
- "$ref": "#/components/schemas/AssistantMessage"
|
|
|
+ "type": "object",
|
|
|
+ "properties": {
|
|
|
+ "info": {
|
|
|
+ "$ref": "#/components/schemas/Message"
|
|
|
+ },
|
|
|
+ "parts": {
|
|
|
+ "type": "array",
|
|
|
+ "items": {
|
|
|
+ "$ref": "#/components/schemas/Part"
|
|
|
+ }
|
|
|
+ }
|
|
|
+ },
|
|
|
+ "required": ["info", "parts"]
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
@@ -4790,211 +4802,7 @@
|
|
|
"all": {
|
|
|
"type": "array",
|
|
|
"items": {
|
|
|
- "type": "object",
|
|
|
- "properties": {
|
|
|
- "api": {
|
|
|
- "type": "string"
|
|
|
- },
|
|
|
- "name": {
|
|
|
- "type": "string"
|
|
|
- },
|
|
|
- "env": {
|
|
|
- "type": "array",
|
|
|
- "items": {
|
|
|
- "type": "string"
|
|
|
- }
|
|
|
- },
|
|
|
- "id": {
|
|
|
- "type": "string"
|
|
|
- },
|
|
|
- "npm": {
|
|
|
- "type": "string"
|
|
|
- },
|
|
|
- "models": {
|
|
|
- "type": "object",
|
|
|
- "propertyNames": {
|
|
|
- "type": "string"
|
|
|
- },
|
|
|
- "additionalProperties": {
|
|
|
- "type": "object",
|
|
|
- "properties": {
|
|
|
- "id": {
|
|
|
- "type": "string"
|
|
|
- },
|
|
|
- "name": {
|
|
|
- "type": "string"
|
|
|
- },
|
|
|
- "family": {
|
|
|
- "type": "string"
|
|
|
- },
|
|
|
- "release_date": {
|
|
|
- "type": "string"
|
|
|
- },
|
|
|
- "attachment": {
|
|
|
- "type": "boolean"
|
|
|
- },
|
|
|
- "reasoning": {
|
|
|
- "type": "boolean"
|
|
|
- },
|
|
|
- "temperature": {
|
|
|
- "type": "boolean"
|
|
|
- },
|
|
|
- "tool_call": {
|
|
|
- "type": "boolean"
|
|
|
- },
|
|
|
- "interleaved": {
|
|
|
- "anyOf": [
|
|
|
- {
|
|
|
- "type": "boolean",
|
|
|
- "const": true
|
|
|
- },
|
|
|
- {
|
|
|
- "type": "object",
|
|
|
- "properties": {
|
|
|
- "field": {
|
|
|
- "type": "string",
|
|
|
- "enum": ["reasoning_content", "reasoning_details"]
|
|
|
- }
|
|
|
- },
|
|
|
- "required": ["field"],
|
|
|
- "additionalProperties": false
|
|
|
- }
|
|
|
- ]
|
|
|
- },
|
|
|
- "cost": {
|
|
|
- "type": "object",
|
|
|
- "properties": {
|
|
|
- "input": {
|
|
|
- "type": "number"
|
|
|
- },
|
|
|
- "output": {
|
|
|
- "type": "number"
|
|
|
- },
|
|
|
- "cache_read": {
|
|
|
- "type": "number"
|
|
|
- },
|
|
|
- "cache_write": {
|
|
|
- "type": "number"
|
|
|
- },
|
|
|
- "context_over_200k": {
|
|
|
- "type": "object",
|
|
|
- "properties": {
|
|
|
- "input": {
|
|
|
- "type": "number"
|
|
|
- },
|
|
|
- "output": {
|
|
|
- "type": "number"
|
|
|
- },
|
|
|
- "cache_read": {
|
|
|
- "type": "number"
|
|
|
- },
|
|
|
- "cache_write": {
|
|
|
- "type": "number"
|
|
|
- }
|
|
|
- },
|
|
|
- "required": ["input", "output"]
|
|
|
- }
|
|
|
- },
|
|
|
- "required": ["input", "output"]
|
|
|
- },
|
|
|
- "limit": {
|
|
|
- "type": "object",
|
|
|
- "properties": {
|
|
|
- "context": {
|
|
|
- "type": "number"
|
|
|
- },
|
|
|
- "input": {
|
|
|
- "type": "number"
|
|
|
- },
|
|
|
- "output": {
|
|
|
- "type": "number"
|
|
|
- }
|
|
|
- },
|
|
|
- "required": ["context", "output"]
|
|
|
- },
|
|
|
- "modalities": {
|
|
|
- "type": "object",
|
|
|
- "properties": {
|
|
|
- "input": {
|
|
|
- "type": "array",
|
|
|
- "items": {
|
|
|
- "type": "string",
|
|
|
- "enum": ["text", "audio", "image", "video", "pdf"]
|
|
|
- }
|
|
|
- },
|
|
|
- "output": {
|
|
|
- "type": "array",
|
|
|
- "items": {
|
|
|
- "type": "string",
|
|
|
- "enum": ["text", "audio", "image", "video", "pdf"]
|
|
|
- }
|
|
|
- }
|
|
|
- },
|
|
|
- "required": ["input", "output"]
|
|
|
- },
|
|
|
- "experimental": {
|
|
|
- "type": "boolean"
|
|
|
- },
|
|
|
- "status": {
|
|
|
- "type": "string",
|
|
|
- "enum": ["alpha", "beta", "deprecated"]
|
|
|
- },
|
|
|
- "options": {
|
|
|
- "type": "object",
|
|
|
- "propertyNames": {
|
|
|
- "type": "string"
|
|
|
- },
|
|
|
- "additionalProperties": {}
|
|
|
- },
|
|
|
- "headers": {
|
|
|
- "type": "object",
|
|
|
- "propertyNames": {
|
|
|
- "type": "string"
|
|
|
- },
|
|
|
- "additionalProperties": {
|
|
|
- "type": "string"
|
|
|
- }
|
|
|
- },
|
|
|
- "provider": {
|
|
|
- "type": "object",
|
|
|
- "properties": {
|
|
|
- "npm": {
|
|
|
- "type": "string"
|
|
|
- },
|
|
|
- "api": {
|
|
|
- "type": "string"
|
|
|
- }
|
|
|
- }
|
|
|
- },
|
|
|
- "variants": {
|
|
|
- "type": "object",
|
|
|
- "propertyNames": {
|
|
|
- "type": "string"
|
|
|
- },
|
|
|
- "additionalProperties": {
|
|
|
- "type": "object",
|
|
|
- "propertyNames": {
|
|
|
- "type": "string"
|
|
|
- },
|
|
|
- "additionalProperties": {}
|
|
|
- }
|
|
|
- }
|
|
|
- },
|
|
|
- "required": [
|
|
|
- "id",
|
|
|
- "name",
|
|
|
- "release_date",
|
|
|
- "attachment",
|
|
|
- "reasoning",
|
|
|
- "temperature",
|
|
|
- "tool_call",
|
|
|
- "limit",
|
|
|
- "options"
|
|
|
- ]
|
|
|
- }
|
|
|
- }
|
|
|
- },
|
|
|
- "required": ["name", "env", "id", "models"]
|
|
|
+ "$ref": "#/components/schemas/Provider"
|
|
|
}
|
|
|
},
|
|
|
"default": {
|