mirror of
https://github.com/khoaliber/khoj.git
synced 2026-03-02 21:19:12 +00:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user