mirror of
https://github.com/langbot-app/LangBot.git
synced 2026-08-12 22:00:57 +00:00
fix: In the runner, every 8 tokens yield
This commit is contained in:
@@ -195,5 +195,4 @@ class GiteeAIChatCompletions(chatcmpl.OpenAIChatCompletions):
|
||||
delta_message.is_final = True
|
||||
delta_message.content = current_content
|
||||
|
||||
if chunk_idx % 64 == 0 or delta_message.is_final:
|
||||
yield delta_message
|
||||
yield delta_message
|
||||
|
||||
Reference in New Issue
Block a user