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.
Describe Your Changes
This PR addresses numerous issues related to the remote engine revamp that were preventing the release of 0.5.14.
Fixes Issues
Self Checklist
This pull request includes several changes to the
web
directory, primarily focusing on improving the handling of inference engines and models. The most important changes include modifying the logic for selecting models, updating the inference engine handling, and adding new hooks and atoms for managing engine configurations.Improvements to model selection and engine handling:
web/containers/ModelDropdown/index.tsx
: Added logic to handle cases where the model is not found and updated thesetSelectedModel
function accordingly.web/containers/Providers/ModelHandler.tsx
: Updated the conditions for checking local engines and simplified the engine retrieval for inference. [1] [2]Updates to hooks for managing models and engines:
web/hooks/useActiveModel.ts
: Changed the engine retrieval to always useInferenceEngine.cortex
.web/hooks/useRecommendedModel.ts
: AddedinstalledEnginesAtom
and updated the logic to filter models based on engine type and API key presence. [1] [2] [3] [4]Enhancements to UI components:
web/screens/Hub/ModelList/index.tsx
: IncorporatedinstalledEnginesAtom
to filter remote models and updated dependencies for sorting models. [1] [2] [3] [4]web/screens/Settings/Engines/RemoteEngineSettings.tsx
: Added event emission on engine update and handled cases where the engine is not found. [1] [2]