fix: Update placeholder text and error message (#6263)
This commit improves the clarity of the llama.cpp extension.
- Corrected a placeholder example from `GGML_VK_VISIBLE_DEVICES='0,1'` to `GGML_VK_VISIBLE_DEVICES=0,1` for better accuracy.
- Changed an ambiguous error message from `"Failed to load llama-server: ${error}"` to the more specific `"Failed to load llamacpp backend"`.
This commit is contained in:
parent
5c3a6fec32
commit
9c25480c7b
@ -17,7 +17,7 @@
|
|||||||
"controllerType": "input",
|
"controllerType": "input",
|
||||||
"controllerProps": {
|
"controllerProps": {
|
||||||
"value": "none",
|
"value": "none",
|
||||||
"placeholder": "Eg, GGML_VK_VISIBLE_DEVICES='0,1'",
|
"placeholder": "Eg. GGML_VK_VISIBLE_DEVICES=0,1",
|
||||||
"type": "text",
|
"type": "text",
|
||||||
"textAlign": "right"
|
"textAlign": "right"
|
||||||
}
|
}
|
||||||
|
|||||||
@ -1763,7 +1763,7 @@ export default class llamacpp_extension extends AIEngine {
|
|||||||
return dList
|
return dList
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
logger.error('Failed to query devices:\n', error)
|
logger.error('Failed to query devices:\n', error)
|
||||||
throw new Error(`Failed to load llama-server: ${error}`)
|
throw new Error("Failed to load llamacpp backend")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user