Repository navigation
fix: replace retired gpt-5 and gpt-4.1 with gpt-5.6-luna in OpenAI default models - #1141
pcbeingused333 wants to merge 2 commits into
Conversation
…fault models Signed-off-by: Alex Castillo <alex.castillog33@gmail.com>
|
All contributors have signed the DCO ✍️ ✅ |
[Medium impact] The reviewed changes appear safe to merge. SummaryMoves the three OpenAI chat aliases to
No actionable new issues were found. Live OpenAI behavior was not tested. Reviews (2) · Last reviewed commit: "fix: send max_completion_tokens to the O..." · Reviewed by Greptile |
|
recheck |
|
I have read the DCO document and I hereby sign the DCO. |
| "reasoning": {"model": "gpt-5.6-luna", "inference_parameters": GPT5_INFERENCE_PARAMS}, | ||
| "vision": {"model": "gpt-5.6-luna", "inference_parameters": GPT5_INFERENCE_PARAMS}, |
There was a problem hiding this comment.
I’m seeing a compatibility issue with MCP tools here: Luna returns HTTP 400 for function tools with reasoning_effort="medium" through Chat Completions. The same exchange works with GPT-5, and with Luna when reasoning is disabled. Would it make sense to revisit the interim configuration in #1129 so these aliases keep working with tools while Responses support is pending?
| "text": {"model": "gpt-4.1", "inference_parameters": DEFAULT_TEXT_INFERENCE_PARAMS}, | ||
| "reasoning": {"model": "gpt-5", "inference_parameters": GPT5_INFERENCE_PARAMS}, | ||
| "vision": {"model": "gpt-5", "inference_parameters": GPT5_INFERENCE_PARAMS}, | ||
| "text": {"model": "gpt-5.6-luna", "inference_parameters": GPT5_TEXT_INFERENCE_PARAMS}, |
There was a problem hiding this comment.
There’s another compatibility detail with openai-text: calls that set max_tokens worked with GPT-4.1, but Luna rejects that parameter and asks for max_completion_tokens, even with reasoning disabled. It looks like DD forwards it unchanged. Translating the limit for the affected OpenAI models, with a test for an explicit token limit, would help preserve those calls.
|
|
||
| <Note title="Existing configurations are preserved"> | ||
| Upgrades do not overwrite existing configuration files. If `nvidia-text` or `nvidia-reasoning` still references a retired model, update `~/.data-designer/model_configs.yaml` manually or run `data-designer config reset` to restore the current defaults. Resetting deletes all custom configurations. | ||
| Upgrades do not overwrite existing configuration files. If `nvidia-text`, `nvidia-reasoning`, or an `openai-*` alias still references a retired model (for example `gpt-5` or `gpt-4.1`), update `~/.data-designer/model_configs.yaml` manually or run `data-designer config reset` to restore the current defaults. Resetting deletes all custom configurations. |
There was a problem hiding this comment.
A small YAML example might make this migration easier. If someone changes only the model name, the saved temperature and top_p values remain, but reasoning_effort="none" is missing, which returned HTTP 400 in my check. Showing the inference parameters alongside the model would help users update without resetting their custom configs.
andreatnvidia
left a comment
There was a problem hiding this comment.
Thanks for updating the defaults and including the saved-config note. The live checks surfaced a couple of compatibility issues with MCP tools and explicit token limits, detailed inline. I’d like us to address those before merging. The migration example would also be helpful, though I wouldn’t hold up the change for that alone.
…migration Newer OpenAI models reject max_tokens on Chat Completions. Translate it for api.openai.com endpoints only, keeping max_tokens for other OpenAI-compatible servers, and add a YAML migration example to the default model settings docs. Signed-off-by: Alex Castillo <alex.castillog33@gmail.com>
|
Thanks for the live checks. Pushed a commit on top:
This reply was drafted with the help of an AI assistant (Claude Code) and the changes were not run against the live OpenAI API. |
|
Thanks for working through the updates here. We’d like to pause this briefly while we work through Responses API support in #1151. That should give us a better basis for choosing defaults that support reasoning with MCP tools. We’ll add the |
Clearing the changes-requested status while we pause this until after 1.0 and work through Responses API support in #1151. We’ll revisit the remaining compatibility concerns when this resumes.
Fixes #1129
📋 Summary
The built-in OpenAI defaults point
openai-reasoning/openai-visionatgpt-5(retired 2026-12-11) andopenai-textatgpt-4.1(removed 2027-01-14). As agreed in #1129, all three aliases move togpt-5.6-luna, keeping the alias names.🔗 Related Issue
Fixes #1129
🔄 Changes
constants.py:PREDEFINED_PROVIDERS_MODEL_MAP[OPENAI_PROVIDER_NAME]usesgpt-5.6-lunafor text, reasoning and vision.GPT5_TEXT_INFERENCE_PARAMSforopenai-text: the existingtemperature=0.85, top_p=0.95plusreasoning_effort: "none"; reasoning/vision keepGPT5_INFERENCE_PARAMS(reasoning_effort: "medium").test_default_model_settings.py: assertions for the new models and the text inference params.default-model-settings.mdx: table updated; the "Existing configurations are preserved" note now also coversopenai-*aliases that still referencegpt-5orgpt-4.1.🧪 Testing
make testpassespytest packages/data-designer-config/tests/config/test_default_model_settings.py: 1 failure on main, 15 passed with this change.ruff check/ruff format --checkclean on the touched files. Not exercised against the live OpenAI API (no key available), so the text/code, judging, image and tool-call spot checks mentioned in #1129 still need someone with access.✅ Checklist
triagedDisclosure: this change was prepared with the assistance of an AI coding agent (Claude Code) and reviewed before submission.