Skip to content

Commit cc9db96

Browse files
committed
roll back wrong llm tool chema
1 parent 87651c9 commit cc9db96

File tree

1 file changed

+1
-8
lines changed

1 file changed

+1
-8
lines changed

src/inferencesh/models/llm.py

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -453,14 +453,7 @@ def build_tools(tools: Optional[List[Dict[str, Any]]]) -> Optional[List[Dict[str
453453
}
454454

455455
# Wrap in OpenAI format
456-
tool_def = {
457-
"type": "function",
458-
"function": func_def
459-
}
460-
if "description" in tool_def:
461-
tool_def["description"] = tool_def["description"]
462-
463-
result.append(tool_def)
456+
result.append({"type": "function", "function": func_def})
464457

465458
return result
466459

0 commit comments

Comments
 (0)