Features
Структурированный вывод
Получение ответа в заданном JSON-формате.
OpenGates поддерживает structured output (JSON mode) через параметр response_format.
Пример
{
"model": "openai/gpt-4o-mini",
"messages": [...],
"response_format": {
"type": "json_schema",
"json_schema": {
"name": "weather_response",
"strict": true,
"schema": {
"type": "object",
"properties": {
"location": { "type": "string" },
"temperature": { "type": "number" }
},
"required": ["location", "temperature"],
"additionalProperties": false
}
}
}
}Поддерживается моделями OpenAI GPT-4o и новее.