Zhuoxi2000 opened a new issue, #1414: URL: https://github.com/apache/flink-agents/issues/1414
### Search before asking - [x] I searched in the [issues](https://github.com/apache/flink-agents/issues) and found nothing similar. ### Description Python `OpenAIChatModelSetup` accepts `strict` and `reasoning_effort`, and the OpenAI provider docs list both for Python, but neither reaches the request. `OpenAIChatModelSetup.model_kwargs` (`python/flink_agents/integrations/chat_models/openai/openai_chat_model.py`) only returns `model`, `temperature`, `max_tokens`, `logprobs`/`top_logprobs` and `additional_kwargs`. So: - `strict=True`: `OpenAIChatModelConnection.chat` reads `kwargs.get("strict", False)`, which is always `False`, so tool definitions are sent with `strict: false`. - `reasoning_effort="high"`: never sent to `chat.completions.create`. Expected: same as Java `OpenAICompletionsSetup`, which puts `strict` (when true) and `reasoning_effort` (when set) into the parameters, and `OpenAICompletionsConnection` removes `strict` before building the request. ### How to reproduce ```python setup = OpenAIChatModelSetup(connection="conn", strict=True, reasoning_effort="high") conn.chat([ChatMessage.user("hi")], tools=[add_tool], **setup.model_kwargs) # create() kwargs: tools[0]["function"]["strict"] is False, no "reasoning_effort" ``` With a mocked client returning a real `ChatCompletion`, assertions on `tools[0]["function"]["strict"] is True` and `request["reasoning_effort"] == "high"` both fail. ### Version and environment main at 09d07a02, Python 3.11, macOS. ### Are you willing to submit a PR? - [x] I'm willing to submit a PR! -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
