| commit | ad1e9b163c8300167be8f25c3cde9c5f32250d2b | [log] [tgz] | 
|---|---|---|
| author | sxnan <suxuannan95@gmail.com> | Mon Oct 13 11:36:50 2025 +0800 | 
| committer | Xuannan <suxuannan95@gmail.com> | Thu Oct 23 09:40:13 2025 +0800 | 
| tree | 8d0a38e04a2613eb3af5c2e4414b3dfe0c490285 | |
| parent | d1a419b25601ceba7b3b6eac5faaaa3784cd5aaf [diff] | 
[hotfix] Fix tool conversion in openai_chat_model
diff --git a/python/flink_agents/integrations/chat_models/openai/openai_chat_model.py b/python/flink_agents/integrations/chat_models/openai/openai_chat_model.py index 08dbaf8..f12dd39 100644 --- a/python/flink_agents/integrations/chat_models/openai/openai_chat_model.py +++ b/python/flink_agents/integrations/chat_models/openai/openai_chat_model.py
@@ -158,7 +158,7 @@ """ tool_specs = None if tools is not None: - tool_specs = [to_openai_tool(tool.metadata) for tool in tools] + tool_specs = [to_openai_tool(metadata=tool.metadata) for tool in tools] strict = kwargs.get("strict", False) for tool_spec in tool_specs: if tool_spec["type"] == "function":