Skip to content

Commit 2c614b2

Browse files
authored
cleanup: remove auxilary return for now (#1727)
1 parent a3c6c0b commit 2c614b2

File tree

2 files changed

+0
-255
lines changed

2 files changed

+0
-255
lines changed

src/backend/src/modules/puterai/lib/OpenAIUtil.js

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,6 @@ const extractMeteredUsage = (usage) => {
9191
const create_chat_stream_handler = ({
9292
deviations,
9393
completion,
94-
usage_calculator,
9594
usage_promise,
9695
}) => async ({ chatStream }) => {
9796
deviations = Object.assign({
@@ -161,10 +160,6 @@ const create_chat_stream_handler = ({
161160
if ( mode === 'tool' ) toolblock.end();
162161
message.end();
163162
chatStream.end();
164-
return usage_calculator ? usage_calculator({ usage: last_usage }) : {
165-
input_tokens: last_usage.prompt_tokens,
166-
output_tokens: last_usage.completion_tokens,
167-
};
168163
};
169164

170165
/**

src/backend/src/services/auth/PermissionUtils.mjs

Lines changed: 0 additions & 250 deletions
This file was deleted.

0 commit comments

Comments
 (0)