Merge pull request #4593 from qq1037305420/patch-2

fix: issue 3732
This commit is contained in:
Nate Sesti 2025-03-11 10:36:28 -07:00 • committed by GitHub
commit 01f802c690
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -359,6 +359,7 @@ class Ollama extends BaseLLM implements ModelInstaller{
if ("error" in j) {
throw new Error(j.error);
}
j.response ??= ''
yield j.response;
} catch (e) {
throw new Error(`Error parsing Ollama response: ${e} ${chunk}`);