-
Notifications
You must be signed in to change notification settings - Fork 2.3k
feat: add model selector (fetch from v1/models) when user adds a provider model #6278
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Caution
Changes requested ❌
Reviewed everything up to aa568e6 in 1 minute and 59 seconds. Click for details.
- Reviewed
1339lines of code in8files - Skipped
0files when reviewing. - Skipped posting
1draft comments. View those below. - Modify your settings and rules to customize what types of comments Ellipsis leaves. And don't forget to react with 👍 or 👎 to teach Ellipsis.
1. web-app/src/services/providers.ts:222
- Draft comment:
In updateSettings, the conversion from 'controller_props' to 'controllerProps' uses a conditional to replace undefined values with ''. Consider using a nullish coalescing operator to handle both undefined and null, ensuring consistency with expected types. - Reason this comment was not posted:
Comment was not on a location in the diff, so it can't be submitted as a review comment.
Workflow ID: wflow_WDRqMx6a4ICpwbfY
You can customize by changing your verbosity settings, reacting with 👍 or 👎, replying to comments, or adding code review rules.
|
This is awesome! |
|
Thanks @lucido-simon, please help me resolve the conflict so we can proceed with the merge |
I think you meant to ping @lugnicca |
|
Ah yes, sorry @lucido-simon |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
|
Awesome, thanks @lugnicca |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM









Describe Your Changes
modelselector.mp4
Fixes Issues
Self Checklist
Important
Introduces a
ModelComboboxfor selecting models from provider APIs with enhanced error handling and caching, updating theAddModeldialog and adding comprehensive tests.ModelComboboxcomponent inModelCombobox.tsxfor selecting models from a dropdown fetched from/v1/modelsendpoint.ModelComboboxinAddModel.tsxfor model selection.useProviderModelshook.useProviderModelsinuseProviderModels.tsto fetch and cache models from provider APIs.ModelComboboxinModelCombobox.test.tsx.useProviderModelsinuseProviderModels.test.ts.providers.test.tsto test new error handling infetchModelsFromProvider.This description was created by
for aa568e6. You can customize this summary. It will automatically update as commits are pushed.