commit
01f802c690
1 changed files with 1 additions and 0 deletions
|
|
@ -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}`);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue