fix: remove auto refresh model custom provider #6002
Merged
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 pull request removes the auto-refresh functionality for models of non-predefined providers in the
ProviderDetail
component. The change simplifies the code by delegating the responsibility for handling settings changes to a global event handler.Key change:
ProviderDetail
component:useEffect
hook that automatically refreshed models every 10 seconds for non-predefined providers. This functionality is now managed globally via theGlobalEventHandler
, ensuring consistent handling of settings changes across all screens. ([web-app/src/routes/settings/providers/$providerName.tsxL136-L151](https://github.com/menloresearch/jan/pull/6002/files#diff-bf67bc43ea4ed453c69e14c27bd2fe2006545cb6cedc1fbad166857e073303b5L136-L151)
)Fixes Issues
Self Checklist
Important
Remove auto-refresh for non-predefined providers in
ProviderDetail
, now managed globally viaGlobalEventHandler
.useEffect
hook inProviderDetail
that auto-refreshed models every 10 seconds for non-predefined providers.GlobalEventHandler
for consistent settings change handling.ProviderDetail
by removing redundant auto-refresh logic.This description was created by
for 3b8a4fe. You can customize this summary. It will automatically update as commits are pushed.