mirror of
https://github.com/meta-llama/llama-stack.git
synced 2025-08-02 16:54:42 +00:00
fix: nullable param type for function call
This commit is contained in:
parent
e6bbf8d20b
commit
cb74e6d9c2
1 changed files with 1 additions and 1 deletions
|
@ -865,7 +865,7 @@ def _convert_openai_request_tools(tools: Optional[List[Dict[str, Any]]] = None)
|
||||||
tool_param_properties = tool_params.get("properties", {})
|
tool_param_properties = tool_params.get("properties", {})
|
||||||
for tool_param_key, tool_param_value in tool_param_properties.items():
|
for tool_param_key, tool_param_value in tool_param_properties.items():
|
||||||
tool_param_def = ToolParamDefinition(
|
tool_param_def = ToolParamDefinition(
|
||||||
param_type=tool_param_value.get("type", None),
|
param_type=str(tool_param_value.get("type", None)),
|
||||||
description=tool_param_value.get("description", None),
|
description=tool_param_value.get("description", None),
|
||||||
)
|
)
|
||||||
lls_tool_params[tool_param_key] = tool_param_def
|
lls_tool_params[tool_param_key] = tool_param_def
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue