Skip to content

feat: add gpt-4.5#29

Open
mislavjc wants to merge 1 commit intomainfrom
feature/gpt-4.5
Open

feat: add gpt-4.5#29
mislavjc wants to merge 1 commit intomainfrom
feature/gpt-4.5

Conversation

@mislavjc
Copy link
Contributor

@mislavjc mislavjc commented Mar 5, 2025

This pull request includes several changes to enhance the handling of API keys and model selection in the settings and chat pages. The most important changes include adding support for the new model "gpt-4.5-preview", modifying the AuthModal component to handle closing events, and updating the settings logic to prompt for an API key when selecting certain models.

Enhancements to model support and settings logic:

  • api/plugins/__init__.py: Added support for the "gpt-4.5-preview" model in the SettingConfig class.
  • components/ui/SettingsDrawer.tsx: Updated the SettingsContent function to handle the selection of the "gpt-4.5-preview" model and prompt for an API key if necessary. This includes changes to reset the model if the current provider doesn't support it and handle pending model changes. [1] [2] [3] [4] [5] [6]

Modifications to AuthModal component:

Updates to chat and home pages:

  • app/chat/page.tsx and app/page.tsx: Added the onClose prop to the AuthModal component to ensure the modal can be closed properly. [1] [2]

@mislavjc mislavjc added the enhancement New feature or request label Mar 5, 2025
@mislavjc mislavjc self-assigned this Mar 5, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant