@adobe/spacecat-shared-gpt-client 1.6.4 → 1.6.5
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.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)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* 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))
|
|
7
|
+
|
|
1
8
|
# [@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
9
|
|
|
3
10
|
|
package/package.json
CHANGED
|
@@ -102,7 +102,7 @@ export default class AzureOpenAIClient {
|
|
|
102
102
|
'api-key': this.config.apiKey,
|
|
103
103
|
};
|
|
104
104
|
|
|
105
|
-
this.log.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
126
|
+
this.log.debug(`[Genvar API Call] URL: ${url}, Headers: ${JSON.stringify(sanitizeHeaders(headers))}`);
|
|
127
127
|
|
|
128
128
|
let response;
|
|
129
129
|
try {
|