You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
if ( response.has_error() ) { if (ollama::use_exceptions) throwollama::exception("Ollama response returned error: "+response.get_error() ); }
512
+
on_receive_token(response);
513
+
}
514
+
catch (const ollama::invalid_json_exception& e) { /* Partial response was received. Will do nothing and attempt to concatenate with the next response. */ }
if ( response.has_error() ) { if (ollama::use_exceptions) throw ollama::exception("Ollama response returned error: "+response.get_error() ); }
35302
+
on_receive_token(response);
35303
+
}
35304
+
catch (const ollama::invalid_json_exception& e) { /* Partial response was received. Will do nothing and attempt to concatenate with the next response. */ }
0 commit comments