Skip to content

chore(openui-chat): use OPENAI_MODEL instead of hardcoded model#494

Merged
zahlekhan merged 1 commit intomainfrom
chore/openui-chat-openai-model-env
May 6, 2026
Merged

chore(openui-chat): use OPENAI_MODEL instead of hardcoded model#494
zahlekhan merged 1 commit intomainfrom
chore/openui-chat-openai-model-env

Conversation

@zahlekhan
Copy link
Copy Markdown
Contributor

Summary

  • replace the hardcoded gpt-5.4 model in examples/openui-chat/src/app/api/chat/route.ts with process.env.OPENAI_MODEL
  • keep gpt-5.4 as the fallback to preserve existing behavior when the env var is not set

Test plan

  • Inspect diff to confirm only the model assignment changed
  • Run lints for the edited file (examples/openui-chat/src/app/api/chat/route.ts)
  • Optionally run the example with OPENAI_MODEL set to verify runtime model switching

Made with Cursor

Use OPENAI_MODEL in the chat route so deployments can change models without code edits, while preserving gpt-5.4 as the default fallback.

Co-authored-by: Cursor <cursoragent@cursor.com>
@zahlekhan zahlekhan enabled auto-merge (squash) May 6, 2026 16:31
@zahlekhan zahlekhan merged commit e21b6d9 into main May 6, 2026
1 check passed
@zahlekhan zahlekhan deleted the chore/openui-chat-openai-model-env branch May 6, 2026 17:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants