@aj-archipelago/cortex 1.1.16 → 1.1.17
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aj-archipelago/cortex",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.17",
|
|
4
4
|
"description": "Cortex is a GraphQL API for AI. It provides a simple, extensible interface for using AI services from OpenAI, Azure and others.",
|
|
5
5
|
"private": false,
|
|
6
6
|
"repository": {
|
|
@@ -216,9 +216,12 @@ class PathwayResolver {
|
|
|
216
216
|
|
|
217
217
|
for (let retries = 0; retries < MAX_RETRIES; retries++) {
|
|
218
218
|
data = await this.processRequest(args);
|
|
219
|
-
|
|
219
|
+
if (!data) {
|
|
220
|
+
break;
|
|
221
|
+
}
|
|
220
222
|
|
|
221
|
-
|
|
223
|
+
data = this.responseParser.parse(data);
|
|
224
|
+
if (data !== null) {
|
|
222
225
|
break;
|
|
223
226
|
}
|
|
224
227
|
|