fix: handle context shift setting from old app versions

This commit is contained in:
Louis 2025-06-26 19:32:34 +07:00
parent 2ae51bcf4e
commit d75db73a43
No known key found for this signature in database
GPG Key ID: 44FA9F4D33C37DE2

View File

@ -280,7 +280,7 @@ export default class JanInferenceCortexExtension extends LocalOAIEngine {
...(model.id.toLowerCase().includes('jan-nano') ...(model.id.toLowerCase().includes('jan-nano')
? { reasoning_budget: 0 } ? { reasoning_budget: 0 }
: { reasoning_budget: this.reasoning_budget }), : { reasoning_budget: this.reasoning_budget }),
...(this.context_shift === false ...(this.context_shift !== true
? { 'no-context-shift': true } ? { 'no-context-shift': true }
: {}), : {}),
...(modelSettings.ngl === -1 || modelSettings.ngl === undefined ...(modelSettings.ngl === -1 || modelSettings.ngl === undefined