🐛fix: update default extension settings (#5315)
* fix: update default extension settings * chore: hide language setting on Prod
This commit is contained in:
parent
2899d58ad7
commit
86079074d2
@ -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.",
|
"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",
|
"controllerType": "checkbox",
|
||||||
"controllerProps": {
|
"controllerProps": {
|
||||||
"value": true
|
"value": false
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|||||||
@ -64,7 +64,7 @@ export default class JanInferenceCortexExtension extends LocalOAIEngine {
|
|||||||
cpu_threads?: number
|
cpu_threads?: number
|
||||||
auto_unload_models: boolean = true
|
auto_unload_models: boolean = true
|
||||||
reasoning_budget = -1 // Default reasoning budget in seconds
|
reasoning_budget = -1 // Default reasoning budget in seconds
|
||||||
context_shift = true
|
context_shift = false
|
||||||
/**
|
/**
|
||||||
* The URL for making inference requests.
|
* 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.flash_attn = await this.getSetting<boolean>(Settings.flash_attn, true)
|
||||||
this.context_shift = await this.getSetting<boolean>(
|
this.context_shift = await this.getSetting<boolean>(
|
||||||
Settings.context_shift,
|
Settings.context_shift,
|
||||||
true
|
false
|
||||||
)
|
)
|
||||||
this.use_mmap = await this.getSetting<boolean>(Settings.use_mmap, true)
|
this.use_mmap = await this.getSetting<boolean>(Settings.use_mmap, true)
|
||||||
if (this.caching_enabled)
|
if (this.caching_enabled)
|
||||||
|
|||||||
@ -180,10 +180,6 @@ export const useChat = () => {
|
|||||||
if (updatedProvider)
|
if (updatedProvider)
|
||||||
await restartModel(updatedProvider, model.id, controller)
|
await restartModel(updatedProvider, model.id, controller)
|
||||||
|
|
||||||
console.log(
|
|
||||||
updatedProvider?.models.find((e) => e.id === model.id)?.settings
|
|
||||||
?.ctx_len?.controller_props.value
|
|
||||||
)
|
|
||||||
return updatedProvider
|
return updatedProvider
|
||||||
},
|
},
|
||||||
[getProviderByName, restartModel, updateProvider]
|
[getProviderByName, restartModel, updateProvider]
|
||||||
|
|||||||
@ -45,6 +45,7 @@ import { isDev } from '@/lib/utils'
|
|||||||
import { emit } from '@tauri-apps/api/event'
|
import { emit } from '@tauri-apps/api/event'
|
||||||
import { stopAllModels } from '@/services/models'
|
import { stopAllModels } from '@/services/models'
|
||||||
import { SystemEvent } from '@/types/events'
|
import { SystemEvent } from '@/types/events'
|
||||||
|
import { isProd } from '@/lib/version'
|
||||||
|
|
||||||
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
||||||
export const Route = createFileRoute(route.settings.general as any)({
|
export const Route = createFileRoute(route.settings.general as any)({
|
||||||
@ -234,10 +235,12 @@ function General() {
|
|||||||
</Button>
|
</Button>
|
||||||
}
|
}
|
||||||
/>
|
/>
|
||||||
|
{!isProd && (
|
||||||
<CardItem
|
<CardItem
|
||||||
title={t('common.language')}
|
title={t('common.language')}
|
||||||
actions={<LanguageSwitcher />}
|
actions={<LanguageSwitcher />}
|
||||||
/>
|
/>
|
||||||
|
)}
|
||||||
</Card>
|
</Card>
|
||||||
|
|
||||||
{/* Data folder */}
|
{/* Data folder */}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user