@adobe/spacecat-shared-gpt-client 1.1.0 → 1.1.2
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/CHANGELOG.md +14 -0
- package/package.json +3 -3
- package/src/clients/firefall-client.js +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,17 @@
|
|
|
1
|
+
# [@adobe/spacecat-shared-gpt-client-v1.1.2](https://github.com/adobe/spacecat-shared/compare/@adobe/spacecat-shared-gpt-client-v1.1.1...@adobe/spacecat-shared-gpt-client-v1.1.2) (2024-02-21)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* **deps:** update dependency @adobe/helix-universal to v4.5.0 ([#159](https://github.com/adobe/spacecat-shared/issues/159)) ([3006346](https://github.com/adobe/spacecat-shared/commit/3006346f180abf78c950334135e423eabd2c1765))
|
|
7
|
+
|
|
8
|
+
# [@adobe/spacecat-shared-gpt-client-v1.1.1](https://github.com/adobe/spacecat-shared/compare/@adobe/spacecat-shared-gpt-client-v1.1.0...@adobe/spacecat-shared-gpt-client-v1.1.1) (2024-02-08)
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
### Bug Fixes
|
|
12
|
+
|
|
13
|
+
* waiting job status ([#145](https://github.com/adobe/spacecat-shared/issues/145)) ([9fc9b6c](https://github.com/adobe/spacecat-shared/commit/9fc9b6c356f7438c52044cdc114279777f4af7ae))
|
|
14
|
+
|
|
1
15
|
# [@adobe/spacecat-shared-gpt-client-v1.1.0](https://github.com/adobe/spacecat-shared/compare/@adobe/spacecat-shared-gpt-client-v1.0.0...@adobe/spacecat-shared-gpt-client-v1.1.0) (2024-02-08)
|
|
2
16
|
|
|
3
17
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@adobe/spacecat-shared-gpt-client",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.2",
|
|
4
4
|
"description": "Shared modules of the Spacecat Services - GPT Client",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "src/index.js",
|
|
@@ -31,13 +31,13 @@
|
|
|
31
31
|
},
|
|
32
32
|
"dependencies": {
|
|
33
33
|
"@adobe/fetch": "4.1.1",
|
|
34
|
-
"@adobe/helix-universal": "4.
|
|
34
|
+
"@adobe/helix-universal": "4.5.0",
|
|
35
35
|
"@adobe/spacecat-shared-utils": "1.7.2"
|
|
36
36
|
},
|
|
37
37
|
"devDependencies": {
|
|
38
38
|
"chai": "4.4.1",
|
|
39
39
|
"chai-as-promised": "7.1.1",
|
|
40
|
-
"nock": "13.5.
|
|
40
|
+
"nock": "13.5.3",
|
|
41
41
|
"sinon": "17.0.1",
|
|
42
42
|
"sinon-chai": "3.7.0",
|
|
43
43
|
"typescript": "5.3.3"
|
|
@@ -136,7 +136,7 @@ export default class FirefallClient {
|
|
|
136
136
|
}
|
|
137
137
|
|
|
138
138
|
jobStatusResponse = await response.json();
|
|
139
|
-
} while (jobStatusResponse.status === 'PROCESSING');
|
|
139
|
+
} while (jobStatusResponse.status === 'PROCESSING' || jobStatusResponse.status === 'WAITING');
|
|
140
140
|
|
|
141
141
|
if (jobStatusResponse.status !== 'SUCCEEDED') {
|
|
142
142
|
throw new Error(`Job did not succeed, status: ${jobStatusResponse.status}`);
|