Use OpenAPI 3.1.0 format for Ollama JSON schemas (#182761)

This commit is contained in:
Denis Shulyaka
2026-09-20 17:13:30 +02:00
committed by GitHub
parent 14390247e6
commit c58924cb50
+4 -1
View File
@@ -43,7 +43,9 @@ def _format_tool(
tool_spec = {
"name": tool.name,
"parameters": probatio.to_openapi(
tool.parameters, custom_serializer=custom_serializer
tool.parameters,
custom_serializer=custom_serializer,
openapi_version="3.1.0",
),
}
if tool.description:
@@ -238,6 +240,7 @@ class OllamaBaseLLMEntity(Entity):
if chat_log.llm_api
else llm.selector_serializer
),
openapi_version="3.1.0",
)
# Get response