🐛fix: update default extension settings (#5315)

* fix: update default extension settings

* chore: hide language setting on Prod
This commit is contained in:
Louis 2025-06-17 17:37:31 +07:00 committed by GitHub
parent 2899d58ad7
commit 86079074d2
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 10 additions and 11 deletions

View File

@ -14,7 +14,7 @@
"description": "Automatically shifts the context window when the model is unable to process the entire prompt, ensuring that the most relevant information is always included.",
"controllerType": "checkbox",
"controllerProps": {
"value": true
"value": false
}
},
{

View File

@ -64,7 +64,7 @@ export default class JanInferenceCortexExtension extends LocalOAIEngine {
cpu_threads?: number
auto_unload_models: boolean = true
reasoning_budget = -1 // Default reasoning budget in seconds
context_shift = true
context_shift = false
/**
* The URL for making inference requests.
*/
@ -132,7 +132,7 @@ export default class JanInferenceCortexExtension extends LocalOAIEngine {
this.flash_attn = await this.getSetting<boolean>(Settings.flash_attn, true)
this.context_shift = await this.getSetting<boolean>(
Settings.context_shift,
true
false
)
this.use_mmap = await this.getSetting<boolean>(Settings.use_mmap, true)
if (this.caching_enabled)

View File

@ -180,10 +180,6 @@ export const useChat = () => {
if (updatedProvider)
await restartModel(updatedProvider, model.id, controller)
console.log(
updatedProvider?.models.find((e) => e.id === model.id)?.settings
?.ctx_len?.controller_props.value
)
return updatedProvider
},
[getProviderByName, restartModel, updateProvider]

View File

@ -45,6 +45,7 @@ import { isDev } from '@/lib/utils'
import { emit } from '@tauri-apps/api/event'
import { stopAllModels } from '@/services/models'
import { SystemEvent } from '@/types/events'
import { isProd } from '@/lib/version'
// eslint-disable-next-line @typescript-eslint/no-explicit-any
export const Route = createFileRoute(route.settings.general as any)({
@ -234,10 +235,12 @@ function General() {
</Button>
}
/>
<CardItem
title={t('common.language')}
actions={<LanguageSwitcher />}
/>
{!isProd && (
<CardItem
title={t('common.language')}
actions={<LanguageSwitcher />}
/>
)}
</Card>
{/* Data folder */}