@xuda.io/ai_module 1.1.4005 → 1.1.4007
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/index.mjs +2 -2
- package/package.json +1 -1
package/index.mjs
CHANGED
|
@@ -5153,8 +5153,8 @@ const ai_chat_conversation = async function (req, job_id, headers) {
|
|
|
5153
5153
|
|
|
5154
5154
|
let inputTokens = output.state?._context.usage?.inputTokens || 0;
|
|
5155
5155
|
let outputTokens = output.state?._context?.usage?.outputTokens || 0;
|
|
5156
|
-
|
|
5157
|
-
for (const item of output?._modelResponses) {
|
|
5156
|
+
debugger;
|
|
5157
|
+
for (const item of output?._modelResponses || []) {
|
|
5158
5158
|
inputTokens += item.usage.inputTokens;
|
|
5159
5159
|
outputTokens += item.usage.outputTokens;
|
|
5160
5160
|
}
|