This is an automated email from the ASF dual-hosted git repository. sxnan pushed a commit to branch main in repository https://gitbox.apache.org/repos/asf/flink-agents.git
commit ad1e9b163c8300167be8f25c3cde9c5f32250d2b Author: sxnan <[email protected]> AuthorDate: Mon Oct 13 11:36:50 2025 +0800 [hotfix] Fix tool conversion in openai_chat_model --- .../flink_agents/integrations/chat_models/openai/openai_chat_model.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 @@ class OpenAIChatModelConnection(BaseChatModelConnection): """ 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":
