fix: correct model_id to model_id in console error message

This change ensures that the error message includes the correct model ID, as `modelId` is capitalized in the `sInfo` object.
This commit is contained in:
Akarshan 2025-06-11 11:32:55 +05:30 committed by Louis
parent d60257ebbd
commit 9d4e7cb2b8
No known key found for this signature in database
GPG Key ID: 44FA9F4D33C37DE2

View File

@ -142,7 +142,7 @@ export default class llamacpp_extension extends AIEngine {
try { try {
await this.unload(sInfo.model_id) await this.unload(sInfo.model_id)
} catch (error) { } catch (error) {
console.error(`Failed to unload model ${sInfo.modelId}:`, error) console.error(`Failed to unload model ${sInfo.model_id}:`, error)
} }
} }