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

@ -188,7 +188,7 @@ export async function generateKoboldWithStreaming(generate_data, signal) {
if (data?.token) {
text += data.token;
}
yield { text, swipes: [] };
yield { text, swipes: [], toolCalls: [] };
}
};
}