-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
base: dev
Are you sure you want to change the base?
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
1339
lines of code in8
files - Skipped
0
files when reviewing. - Skipped posting
1
draft 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 |
Describe Your Changes
modelselector.mp4
Fixes Issues
Self Checklist
Important
Introduces a
ModelCombobox
for selecting models from provider APIs with enhanced error handling and caching, updating theAddModel
dialog and adding comprehensive tests.ModelCombobox
component inModelCombobox.tsx
for selecting models from a dropdown fetched from/v1/models
endpoint.ModelCombobox
inAddModel.tsx
for model selection.useProviderModels
hook.useProviderModels
inuseProviderModels.ts
to fetch and cache models from provider APIs.ModelCombobox
inModelCombobox.test.tsx
.useProviderModels
inuseProviderModels.test.ts
.providers.test.ts
to 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.