@adobe/spacecat-shared-gpt-client 1.6.4 → 1.6.6

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,17 @@
1
+ # [@adobe/spacecat-shared-gpt-client-v1.6.6](https://github.com/adobe/spacecat-shared/compare/@adobe/spacecat-shared-gpt-client-v1.6.5...@adobe/spacecat-shared-gpt-client-v1.6.6) (2025-10-25)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * **deps:** update external fixes ([#1046](https://github.com/adobe/spacecat-shared/issues/1046)) ([bb6e118](https://github.com/adobe/spacecat-shared/commit/bb6e11886b323f73624fcb9e3c2b14d318aa00c9))
7
+
8
+ # [@adobe/spacecat-shared-gpt-client-v1.6.5](https://github.com/adobe/spacecat-shared/compare/@adobe/spacecat-shared-gpt-client-v1.6.4...@adobe/spacecat-shared-gpt-client-v1.6.5) (2025-09-25)
9
+
10
+
11
+ ### Bug Fixes
12
+
13
+ * remove unnecessary logs to reduce Coralogix usage ([#947](https://github.com/adobe/spacecat-shared/issues/947)) ([c93fa4f](https://github.com/adobe/spacecat-shared/commit/c93fa4f69238106caa0f8150df029e4535c99e39))
14
+
1
15
  # [@adobe/spacecat-shared-gpt-client-v1.6.4](https://github.com/adobe/spacecat-shared/compare/@adobe/spacecat-shared-gpt-client-v1.6.3...@adobe/spacecat-shared-gpt-client-v1.6.4) (2025-09-16)
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.6.4",
3
+ "version": "1.6.6",
4
4
  "description": "Shared modules of the Spacecat Services - GPT Client",
5
5
  "type": "module",
6
6
  "engines": {
@@ -40,11 +40,11 @@
40
40
  "@adobe/spacecat-shared-utils": "1.26.4"
41
41
  },
42
42
  "devDependencies": {
43
- "chai": "6.0.1",
43
+ "chai": "6.2.0",
44
44
  "chai-as-promised": "8.0.2",
45
45
  "nock": "14.0.10",
46
46
  "sinon": "21.0.0",
47
47
  "sinon-chai": "4.0.1",
48
- "typescript": "5.9.2"
48
+ "typescript": "5.9.3"
49
49
  }
50
50
  }
@@ -102,7 +102,7 @@ export default class AzureOpenAIClient {
102
102
  'api-key': this.config.apiKey,
103
103
  };
104
104
 
105
- this.log.info(`[Azure OpenAI API Call]: ${url}, Headers: ${JSON.stringify(sanitizeHeaders(headers))}`);
105
+ this.log.debug(`[Azure OpenAI API Call]: ${url}, Headers: ${JSON.stringify(sanitizeHeaders(headers))}`);
106
106
 
107
107
  const response = await httpFetch(url, {
108
108
  method: 'POST',
@@ -125,7 +125,7 @@ export default class FirefallClient {
125
125
  'x-gw-ims-org-id': this.config.imsOrg,
126
126
  };
127
127
 
128
- this.log.info(`[Firefall API Call]]: ${url}, Headers: ${JSON.stringify(sanitizeHeaders(headers))}`);
128
+ this.log.debug(`[Firefall API Call]]: ${url}, Headers: ${JSON.stringify(sanitizeHeaders(headers))}`);
129
129
 
130
130
  const response = await httpFetch(url, {
131
131
  method: 'POST',
@@ -158,7 +158,7 @@ export default class FirefallClient {
158
158
  'x-gw-ims-org-id': this.config.imsOrg,
159
159
  };
160
160
 
161
- this.log.info(`URL: ${url}, Headers: ${JSON.stringify(sanitizeHeaders(headers))}`);
161
+ this.log.debug(`URL: ${url}, Headers: ${JSON.stringify(sanitizeHeaders(headers))}`);
162
162
 
163
163
  const response = await httpFetch(
164
164
  createUrl(url),
@@ -313,7 +313,7 @@ export default class FirefallClient {
313
313
 
314
314
  const result = output.capability_response.generations[0][0];
315
315
 
316
- this.log.info(`Generation Info: ${JSON.stringify(result.generation_info)}`);
316
+ this.log.debug(`Generation Info: ${JSON.stringify(result.generation_info)}`);
317
317
 
318
318
  return result.text;
319
319
  } catch (error) {
@@ -86,7 +86,7 @@ export default class GenvarClient {
86
86
  'x-gw-ims-org-id': this.config.imsOrg,
87
87
  };
88
88
 
89
- this.log.info(`[Genvar API Call] URL: ${url}, Headers: ${JSON.stringify(sanitizeHeaders(headers))}`);
89
+ this.log.debug(`[Genvar API Call] URL: ${url}, Headers: ${JSON.stringify(sanitizeHeaders(headers))}`);
90
90
 
91
91
  let response;
92
92
  let responseJsonObj;
@@ -123,7 +123,7 @@ export default class GenvarClient {
123
123
  'x-gw-ims-org-id': this.config.imsOrg,
124
124
  };
125
125
 
126
- this.log.info(`[Genvar API Call] URL: ${url}, Headers: ${JSON.stringify(sanitizeHeaders(headers))}`);
126
+ this.log.debug(`[Genvar API Call] URL: ${url}, Headers: ${JSON.stringify(sanitizeHeaders(headers))}`);
127
127
 
128
128
  let response;
129
129
  try {