samarthputhraya opened a new issue, #1462: URL: https://github.com/apache/flink-agents/issues/1462
### Search before asking - [x] I searched in the [issues](https://github.com/apache/flink-agents/issues) and found nothing similar. ### Description The OpenAI integrations fall back to models that OpenAI lists for shutdown on 14 Jan 2027: - Java `OpenAIResponsesModelSetup`: `DEFAULT_MODEL = "gpt-4o"` ([L59](https://github.com/apache/flink-agents/blob/b2202ecd11bd78c8e897d9c20338c0273a83cbeb/integrations/chat-models/openai/src/main/java/org/apache/flink/agents/integrations/chatmodels/openai/OpenAIResponsesModelSetup.java#L59)), used when `model` is null (L115-L117); the providers doc gives `"gpt-4o"` as the default. - Java `OpenAICompletionsSetup`: `DEFAULT_MODEL = "gpt-4o-mini"` ([L61](https://github.com/apache/flink-agents/blob/b2202ecd11bd78c8e897d9c20338c0273a83cbeb/integrations/chat-models/openai/src/main/java/org/apache/flink/agents/integrations/chatmodels/openai/OpenAICompletionsSetup.java#L61), fallback at L121-L123). - Python: `DEFAULT_OPENAI_MODEL = "gpt-4o-mini"` ([openai_chat_model.py#L53](https://github.com/apache/flink-agents/blob/b2202ecd11bd78c8e897d9c20338c0273a83cbeb/python/flink_agents/integrations/chat_models/openai/openai_chat_model.py#L53)), the keyword default at L455. OpenAI's deprecations page lists GPT-4o (`gpt-4o-2024-08-06`, `gpt-4o-2024-11-20`) and GPT-4o mini (`gpt-4o-mini-2024-07-18`) for shutdown on 14 Jan 2027, with `gpt-6-luna` as the recommended replacement for both (https://developers.openai.com/api/docs/deprecations). Its GPT-4o model page shows the plain `gpt-4o` name pointing at `gpt-4o-2024-08-06`. The same kind of change as #905. One thing the switch touches: `gpt-6-luna` matches none of the structured-output capability lists (Java [`OpenAICompletionsConnection` L158-L161](https://github.com/apache/flink-agents/blob/b2202ecd11bd78c8e897d9c20338c0273a83cbeb/integrations/chat-models/openai/src/main/java/org/apache/flink/agents/integrations/chatmodels/openai/OpenAICompletionsConnection.java#L158-L161), Python [`openai_chat_model.py` L80-L87](https://github.com/apache/flink-agents/blob/b2202ecd11bd78c8e897d9c20338c0273a83cbeb/python/flink_agents/integrations/chat_models/openai/openai_chat_model.py#L80-L87)), so with it as the default, structured output would be reported as FEASIBLE rather than NATIVE_RECOMMENDED until a `gpt-6` entry is added there, once OpenAI's structured-outputs guide confirms it. Should I send the PR? If it helps you pick the new default, I can first check the switch on one of the example agents (its prompt and tools as a few test conversations on both models, comparing the tool calls). What that looks like, on my fork of another open-source agent: https://github.com/samarthputhraya/sre-copilot/pull/1 (How I came across this: I maintain Modelpin, a small open-source tool that lists the model IDs in a repository with their retirement dates.) Samartha ### 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]
