server : relay error messages (#4131)

This commit is contained in:
SoftwareRenderer 2023-11-19 11:54:10 -05:00 committed by GitHub
parent 262005ad9d
commit 936c79b227
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 15 additions and 0 deletions

View file

@ -94,6 +94,10 @@ export async function* llama(prompt, params = {}, config = {}) {
break;
}
}
if (result.error) {
result.error = JSON.parse(result.error);
console.error(`llama.cpp error: ${result.error.content}`);
}
}
}
}