Skip to content

Commit 4229b9f

Browse files
authored
Merge pull request #5547 from menloresearch/fix/undefined-setting-should-also-disable-context-shift
fix: handle context shift setting from old app versions
2 parents 2ae51bc + c5aac92 commit 4229b9f

File tree

1 file changed

+1
-1
lines changed
  • extensions/inference-cortex-extension/src

1 file changed

+1
-1
lines changed

extensions/inference-cortex-extension/src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -280,7 +280,7 @@ export default class JanInferenceCortexExtension extends LocalOAIEngine {
280280
...(model.id.toLowerCase().includes('jan-nano')
281281
? { reasoning_budget: 0 }
282282
: { reasoning_budget: this.reasoning_budget }),
283-
...(this.context_shift === false
283+
...(this.context_shift !== true // explicit true required to enable context shift
284284
? { 'no-context-shift': true }
285285
: {}),
286286
...(modelSettings.ngl === -1 || modelSettings.ngl === undefined

0 commit comments

Comments
 (0)