feat(error-object): add key

This commit is contained in:
ItzCrazyKns
2024-05-05 16:28:46 +05:30
parent ba7b92ffde
commit 6e61c88c9e
2 changed files with 28 additions and 5 deletions

View File

@ -70,7 +70,8 @@ export const handleConnection = async (
ws.send(
JSON.stringify({
type: 'error',
data: 'Invalid LLM or embeddings model selected',
data: 'Invalid LLM or embeddings model selected, please refresh the page and try again.',
key: 'INVALID_MODEL_SELECTED',
}),
);
ws.close();