fix: stream internal model calls with idle timeouts (#5730)

* fix: stream internal model calls with idle timeouts

* fix(providers): reject streams without terminal events
This commit is contained in:
chengyongru authored and GitHub committed 2026-09-11 13:06:43 +08:00
1 parent aeb7b207d7
commit 73410e0217
60 files changed
+815 -795

No files matched your search

+1 -1
View File
@@ -307,7 +307,7 @@ class TestRestartCommand:
"nanobot.agent.runner.estimate_message_tokens",
lambda _message: 7,
)
loop.provider.chat_with_retry = AsyncMock(side_effect=[
loop.provider.chat_stream_with_retry = AsyncMock(side_effect=[
LLMResponse(content="first", usage=LLMUsage.reported(input_tokens=9, output_tokens=4)),
LLMResponse(content="second", usage=None),
])