fix: bump cortex.cpp to latest version - recursively scanning models folder should also include remote models

This commit is contained in:
Louis 2024-11-20 12:33:42 +07:00
parent 10e1201083
commit 3ea2d9c0ae
No known key found for this signature in database
GPG Key ID: 44FA9F4D33C37DE2
3 changed files with 3 additions and 3 deletions

View File

@ -1 +1 @@
1.0.3-rc4 1.0.3-rc5

View File

@ -83,6 +83,6 @@ export default class JanInferenceOpenRouterExtension extends RemoteOAIEngine {
transformPayload = (payload: PayloadType) => ({ transformPayload = (payload: PayloadType) => ({
...payload, ...payload,
model: this.model, model: payload.model !== 'open-router-auto' ? payload.model : this.model,
}) })
} }

View File

@ -145,7 +145,7 @@ export default class JanModelExtension extends ModelExtension {
*/ */
if (!toImportModels.length) if (!toImportModels.length)
return fetchedModels.concat( return fetchedModels.concat(
legacyModels.filter((e) => e.settings?.vision_model) legacyModels.filter((e) => !fetchedModels.some((x) => x.id === e.id))
) )
console.log('To import models:', toImportModels.length) console.log('To import models:', toImportModels.length)