@adobe/spacecat-shared-gpt-client 1.1.0 → 1.1.1

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 CHANGED
@@ -1,3 +1,10 @@
1
+ # [@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)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * waiting job status ([#145](https://github.com/adobe/spacecat-shared/issues/145)) ([9fc9b6c](https://github.com/adobe/spacecat-shared/commit/9fc9b6c356f7438c52044cdc114279777f4af7ae))
7
+
1
8
  # [@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
9
 
3
10
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@adobe/spacecat-shared-gpt-client",
3
- "version": "1.1.0",
3
+ "version": "1.1.1",
4
4
  "description": "Shared modules of the Spacecat Services - GPT Client",
5
5
  "type": "module",
6
6
  "main": "src/index.js",
@@ -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}`);