feat: Update response handling and logging for improved usage tracking
This commit is contained in:
1 parent
a33924b336
commit
df0e1d6485
7 files changed
+348
-152
No files matched your search
@@ -505,6 +505,8 @@ export function openaiResponsesToOpenAIResponse(chunk, state) {
|
||||
|
||||
if (!state.finishReasonSent) {
|
||||
state.finishReasonSent = true;
|
||||
state.finishReason = "stop"; // Mark for usage injection in stream.js
|
||||
|
||||
const finalChunk = {
|
||||
id: state.chatId,
|
||||
object: "chat.completion.chunk",
|
||||
|
||||
Reference in new issue
Block a user