This is an automated email from the ASF dual-hosted git repository.

sxnan pushed a commit to branch release-0.1
in repository https://gitbox.apache.org/repos/asf/flink-agents.git

commit c3fa60982d6419e86c2b8823313e02e83a8ebc59
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":

Reply via email to