Open
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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
AuthModalcomponent 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 theSettingConfigclass.components/ui/SettingsDrawer.tsx: Updated theSettingsContentfunction 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
AuthModalcomponent:components/ui/AuthModal.tsx: Added an optionalonCloseprop to theAuthModalcomponent and updated theDialogcomponent to callonClosewhen the modal is closed. [1] [2]components/ui/SettingsDrawer.tsx: Imported theAuthModalcomponent and utilized it to handle API key submissions and modal closing events. [1] [2]Updates to chat and home pages:
app/chat/page.tsxandapp/page.tsx: Added theonCloseprop to theAuthModalcomponent to ensure the modal can be closed properly. [1] [2]