@cellaware/utils 7.0.4 → 7.0.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/dist/llm/chain-store.js +1 -2
- package/package.json +1 -1
package/dist/llm/chain-store.js
CHANGED
|
@@ -238,7 +238,6 @@ Your translation here:
|
|
|
238
238
|
callbacks: [
|
|
239
239
|
{
|
|
240
240
|
handleLLMEnd: async (output) => {
|
|
241
|
-
console.log(output);
|
|
242
241
|
const usage = output?.llmOutput?.tokenUsage;
|
|
243
242
|
tokenUsages.push(ChainStore.getTokenUsage(chain._chainType(), chain.getModelName(), usage));
|
|
244
243
|
},
|
|
@@ -262,7 +261,7 @@ Your translation here:
|
|
|
262
261
|
*/
|
|
263
262
|
const AI_PREFIX = 'AI: ';
|
|
264
263
|
if (translationAnswerStr.includes(AI_PREFIX)) {
|
|
265
|
-
console.log(`
|
|
264
|
+
console.log(`CHAIN_STORE: Removing AI indicator from translation answer`);
|
|
266
265
|
translationAnswerStr = translationAnswerStr.substring(translationAnswerStr.indexOf(AI_PREFIX) + AI_PREFIX.length);
|
|
267
266
|
}
|
|
268
267
|
// Remove 'Your translation here:' if it is there.
|