@cellaware/utils 7.0.1 → 7.0.3
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 +4 -1
- package/package.json +1 -1
package/dist/llm/chain-store.js
CHANGED
|
@@ -70,6 +70,9 @@ export class SingleActionChain extends BaseChain {
|
|
|
70
70
|
for (const inputKey of this._inputKeys) {
|
|
71
71
|
llmInputs[inputKey] = values[inputKey];
|
|
72
72
|
}
|
|
73
|
+
console.log(values);
|
|
74
|
+
console.log(runManager);
|
|
75
|
+
console.log(runManager.getChild());
|
|
73
76
|
const llmAnswer = await llmChain.invoke(llmInputs, {
|
|
74
77
|
callbacks: runManager ? [runManager.getChild()] : undefined,
|
|
75
78
|
});
|
|
@@ -233,7 +236,7 @@ Your translation here:
|
|
|
233
236
|
return chain.invoke(args, {
|
|
234
237
|
callbacks: [
|
|
235
238
|
{
|
|
236
|
-
handleLLMEnd:
|
|
239
|
+
handleLLMEnd: (output) => {
|
|
237
240
|
console.log(output);
|
|
238
241
|
const usage = output?.llmOutput?.tokenUsage;
|
|
239
242
|
tokenUsages.push(ChainStore.getTokenUsage(chain._chainType(), chain.getModelName(), usage));
|