@salesforce/lds-adapters-sfap-einstein-ai-gateway 1.321.0 → 1.322.0
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 +3 -3
- package/sfdc/index.js +2 -3
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@salesforce/lds-adapters-sfap-einstein-ai-gateway",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.322.0",
|
|
4
4
|
"description": "LLM Gateway API's",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE.txt",
|
|
6
6
|
"main": "dist/es/es2018/sfap-einstein-ai-gateway.js",
|
|
@@ -40,10 +40,10 @@
|
|
|
40
40
|
"test:unit": "jest"
|
|
41
41
|
},
|
|
42
42
|
"dependencies": {
|
|
43
|
-
"@salesforce/lds-bindings": "^1.
|
|
43
|
+
"@salesforce/lds-bindings": "^1.322.0"
|
|
44
44
|
},
|
|
45
45
|
"devDependencies": {
|
|
46
|
-
"@salesforce/lds-compiler-plugins": "^1.
|
|
46
|
+
"@salesforce/lds-compiler-plugins": "^1.322.0"
|
|
47
47
|
},
|
|
48
48
|
"nx": {
|
|
49
49
|
"targets": {
|
package/sfdc/index.js
CHANGED
|
@@ -463,8 +463,7 @@ function select$8(luvio, params) {
|
|
|
463
463
|
return select$9();
|
|
464
464
|
}
|
|
465
465
|
function keyBuilder$3(luvio, params) {
|
|
466
|
-
|
|
467
|
-
return keyPrefix + '::EmbeddingResponse:(' + 'xClientFeatureId:' + params.headers.xClientFeatureId + ',' + 'xSfdcAppContext:' + params.headers.xSfdcAppContext + ',' + 'xLLMProvider:' + params.headers.xLLMProvider + ',' + 'input:' + params.body.input + '::' + (params.body.model === undefined ? 'model' : 'model:' + params.body.model) + '::' + (params.body.enable_pii_masking === undefined ? 'enable_pii_masking' : 'enable_pii_masking:' + params.body.enable_pii_masking) + '::' + (((_a = params.body.localization) === null || _a === void 0 ? void 0 : _a.defaultLocale) === undefined ? 'localization.defaultLocale' : 'localization.defaultLocale:' + ((_b = params.body.localization) === null || _b === void 0 ? void 0 : _b.defaultLocale)) + '::' + (((_c = params.body.localization) === null || _c === void 0 ? void 0 : _c.inputLocales) === undefined ? undefined : ('[' + ((_d = params.body.localization) === null || _d === void 0 ? void 0 : _d.inputLocales.map(element => 'localization.inputLocales.locale:' + element.locale + '::' + (element.probability === undefined ? 'localization.inputLocales.probability' : 'localization.inputLocales.probability:' + element.probability)).join(',')) + ']')) + '::' + (((_e = params.body.localization) === null || _e === void 0 ? void 0 : _e.expectedLocales) === undefined ? 'localization.expectedLocales' : 'localization.expectedLocales:' + ((_f = params.body.localization) === null || _f === void 0 ? void 0 : _f.expectedLocales)) + '::' + stableJSONStringify(params.body.parameters) + ')';
|
|
466
|
+
return keyPrefix + '::EmbeddingResponse:(' + 'xClientFeatureId:' + params.headers.xClientFeatureId + ',' + 'xSfdcAppContext:' + params.headers.xSfdcAppContext + ',' + 'xLLMProvider:' + params.headers.xLLMProvider + ',' + 'input:' + params.body.input + '::' + (params.body.model === undefined ? 'model' : 'model:' + params.body.model) + '::' + (params.body.enable_pii_masking === undefined ? 'enable_pii_masking' : 'enable_pii_masking:' + params.body.enable_pii_masking) + '::' + (params.body.localization?.defaultLocale === undefined ? 'localization.defaultLocale' : 'localization.defaultLocale:' + params.body.localization?.defaultLocale) + '::' + (params.body.localization?.inputLocales === undefined ? undefined : ('[' + params.body.localization?.inputLocales.map(element => 'localization.inputLocales.locale:' + element.locale + '::' + (element.probability === undefined ? 'localization.inputLocales.probability' : 'localization.inputLocales.probability:' + element.probability)).join(',') + ']')) + '::' + (params.body.localization?.expectedLocales === undefined ? 'localization.expectedLocales' : 'localization.expectedLocales:' + params.body.localization?.expectedLocales) + '::' + stableJSONStringify(params.body.parameters) + ')';
|
|
468
467
|
}
|
|
469
468
|
function getResponseCacheKeys$2(storeKeyMap, luvio, resourceParams, response) {
|
|
470
469
|
getTypeCacheKeys$2(storeKeyMap, luvio, response, () => keyBuilder$3(luvio, resourceParams));
|
|
@@ -1829,4 +1828,4 @@ withDefaultLuvio((luvio) => {
|
|
|
1829
1828
|
});
|
|
1830
1829
|
|
|
1831
1830
|
export { getEmbeddings, getEmbeddings_imperative, getGenerations, registerFeedback };
|
|
1832
|
-
// version: 1.
|
|
1831
|
+
// version: 1.322.0-87f682c9f3
|