Skip to content

Conversation

Copy link

Copilot AI commented Aug 13, 2025

This PR reverts the model dropdown and GPT-5 support functionality that was introduced in commit 4e6b20b. The application now uses a single fixed model for text generation instead of allowing users to select between different models.

Changes Made

Model Configuration

  • Removed TEXT_MODELS array that contained selectable models including GPT-5
  • Simplified to single default model: Now uses "anthropic/claude-4-sonnet" as the fixed text generation model
  • Removed TextModel type definition as model selection is no longer needed

UI Components

  • Removed model dropdown from the header component
  • Cleaned up header props by removing selectedModel, onChangeModel, and availableModels parameters
  • Removed Select component imports that were only used for model selection

State Management

  • Removed model selection state from App.tsx including useQueryState("model")
  • Removed localStorage persistence for selected model preferences
  • Simplified Chat component to use fixed model instead of accepting selectedModel prop

API Routes

  • Removed model parameter handling from request body and URL parameters
  • Fixed model usage in createAIStream function to always use DEFAULT_TEXT_MODEL

Impact

  • Bundle size reduced from 1.12MB to 1.04MB due to removed functionality
  • Simplified user interface with no model selection dropdown in header
  • Consistent model usage across all text generation requests
  • No breaking changes to core chat functionality - users can still create and interact with chats normally

The revert maintains all existing functionality except for the ability to choose between different text generation models, effectively reverting to a simpler, single-model approach.


💬 Share your feedback on Copilot coding agent for the chance to win a $200 gift card! Click here to start the survey.

Co-authored-by: BennyKok <18395202+BennyKok@users.noreply.github.com>
Copilot AI changed the title [WIP] Revert merge commit: Add model dropdown and GPT-5 support for text generation Revert model dropdown and GPT-5 support for text generation Aug 13, 2025
Copilot AI requested a review from BennyKok August 13, 2025 10: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