Add empty tool calls to streaming processors

This commit is contained in:
Cohee
2024-10-02 01:59:53 +03:00
parent e8b9720425
commit 3335dbf1a7
3 changed files with 4 additions and 3 deletions

View File

@@ -746,7 +746,7 @@ export async function generateNovelWithStreaming(generate_data, signal) {
text += data.token;
}
yield { text, swipes: [], logprobs: parseNovelAILogprobs(data.logprobs) };
yield { text, swipes: [], logprobs: parseNovelAILogprobs(data.logprobs), toolCalls: [] };
}
};
}