Stricty enforce tool call schema for llm served via openai compat api

This is required by llama.cpp server and is recommended in general for
openai compatible models
This commit is contained in:
Debanjum
2025-07-23 20:38:03 -05:00
parent 03c4f614dd
commit c401bb9591

View File

@@ -836,6 +836,7 @@ def to_openai_tools(tools: List[ToolDefinition]) -> List[Dict] | None:
"name": tool.name,
"description": tool.description,
"parameters": clean_response_schema(tool.schema),
"strict": True,
},
}
for tool in tools