fix wrong key for backend

This commit is contained in:
Thien Tran 2025-06-02 10:41:18 +08:00 committed by Louis
parent 331c0e04a5
commit 3b72d80979
No known key found for this signature in database
GPG Key ID: 44FA9F4D33C37DE2

View File

@ -154,7 +154,7 @@ export default class llamacpp_extension extends AIEngine {
onSettingUpdate<T>(key: string, value: T): void {
this.config[key] = value
if (key === 'backend') {
if (key === 'version_backend') {
const valueStr = value as string
const [version, backend] = valueStr.split('/')