Skip to content

Commit

Permalink
chore: filter out engine download
Browse files Browse the repository at this point in the history
  • Loading branch information
louis-jan authored and urmauur committed Dec 26, 2024
1 parent 02b6809 commit 5d708a5
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
1 change: 1 addition & 0 deletions extensions/inference-cortex-extension/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -284,6 +284,7 @@ export default class JanInferenceCortexExtension extends LocalOAIEngine {
transferred: transferred,
total: total,
},
downloadType: data.task.type,
}
)

Expand Down
5 changes: 4 additions & 1 deletion web/containers/Providers/EventListener.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,10 @@ const EventListener = () => {
const onFileDownloadSuccess = useCallback(
async (state: DownloadState) => {
console.debug('onFileDownloadSuccess', state)
if (state.downloadType !== 'extension') {
if (
state.downloadType !== 'extension' &&
state.downloadType !== 'Engine'
) {
// Update model metadata accordingly
const model = ModelManager.instance().models.get(state.modelId)
if (model) {
Expand Down

0 comments on commit 5d708a5

Please sign in to comment.