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
add test script for ollama, install and test ollama latest with llama3.2, verify error handling, fix error handling, regression test with Google gemini-2.5-pro.
@@ -139,12 +155,14 @@ LLMCommunicator.prototype.sendMessage = function (payload, onComplete, onError)
139
155
transfer.closeConnection();
140
156
};
141
157
142
-
// common api response errors:
158
+
// Google api response errors:
143
159
// 1. wrong / non-existent model name:
144
160
// [{"error":{"code":404,"message":"models/foo is not found for API version v1main, or is not supported for generateContent. Call ListModels to see the list of available models and their supported methods.","status":"NOT_FOUND"}}]
145
161
// 2. no model name supplied:
146
162
// [{"error":{"code":400,"message":"model is not specified","status":"INVALID_ARGUMENT"}}]
147
163
164
+
// ollama error example:
165
+
// {"error":{"message":"model \"llama3.2\" not found, try pulling it first","type":"api_error","param":null,"code":null}}
0 commit comments