mirror of
https://github.com/home-assistant/core.git
synced 2026-09-26 09:23:17 -04:00
Use OpenAPI 3.1.0 format for ovhcloud_ai_endpoints (#182770)
This commit is contained in:
@@ -43,7 +43,11 @@ def _format_tool(
|
||||
"""Format tool specification."""
|
||||
tool_spec = FunctionDefinition(
|
||||
name=tool.name,
|
||||
parameters=to_openapi(tool.parameters, custom_serializer=custom_serializer),
|
||||
parameters=to_openapi(
|
||||
tool.parameters,
|
||||
custom_serializer=custom_serializer,
|
||||
openapi_version="3.1.0",
|
||||
),
|
||||
)
|
||||
if tool.description:
|
||||
tool_spec["description"] = tool.description
|
||||
|
||||
Reference in New Issue
Block a user