Skip to content

Commit a601434

Browse files
committed
fix: wrong key name
1 parent 01ada08 commit a601434

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

extensions/llamacpp-extension/settings.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@
6060
}
6161
},
6262
{
63-
"key": "context_shift",
63+
"key": "ctx_shift",
6464
"title": "Context Shift",
6565
"description": "Allow model to cut text in the beginning to accommodate new text in its memory",
6666
"controllerType": "checkbox",

web-app/src/hooks/useChat.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ export const useChat = () => {
183183
async (modelId: string, provider: ProviderObject) => {
184184
const providerName = provider.provider
185185
const newSettings = [...provider.settings]
186-
const settingKey = 'context_shift'
186+
const settingKey = 'ctx_shift'
187187
// Handle different value types by forcing the type
188188
// Use type assertion to bypass type checking
189189
const settingIndex = provider.settings.findIndex(

0 commit comments

Comments
 (0)