[Fix] UI: Corrected casing for LMStudio URL variable and updated related error handling logic.
This commit is contained in:
@@ -48,7 +48,7 @@ export const _useBackendErrorHandling = () => {
|
|||||||
updateOpenAIAuthKey,
|
updateOpenAIAuthKey,
|
||||||
updateSelectedOpenAIModel,
|
updateSelectedOpenAIModel,
|
||||||
|
|
||||||
updateLMStudioUrl,
|
updateLMStudioURL,
|
||||||
updateSelectedLMStudioModel,
|
updateSelectedLMStudioModel,
|
||||||
|
|
||||||
updateSelectedOllamaModel,
|
updateSelectedOllamaModel,
|
||||||
@@ -223,10 +223,10 @@ export const _useBackendErrorHandling = () => {
|
|||||||
|
|
||||||
case "/set/data/lmstudio_url":
|
case "/set/data/lmstudio_url":
|
||||||
if (message === "LMStudio URL is not valid") {
|
if (message === "LMStudio URL is not valid") {
|
||||||
updateLMStudioUrl(data);
|
updateLMStudioURL(data);
|
||||||
showNotification_Error(message, { category_id: "lmstudio_url" });
|
showNotification_Error(message, { category_id: "lmstudio_url" });
|
||||||
} else {
|
} else {
|
||||||
updateLMStudioUrl(data);
|
updateLMStudioURL(data);
|
||||||
showNotification_Error(message, { category_id: "lmstudio_url" });
|
showNotification_Error(message, { category_id: "lmstudio_url" });
|
||||||
}
|
}
|
||||||
return;
|
return;
|
||||||
|
|||||||
Reference in New Issue
Block a user