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:
1 parent
aeb7b207d7
commit
73410e0217
60 files changed
+815
-795
No files matched your search
@@ -42,7 +42,7 @@ async def test_outbound_no_longer_carries_generated_media(
|
||||
provider = MagicMock()
|
||||
provider.get_default_model.return_value = "test-model"
|
||||
provider.generation.max_tokens = 4096
|
||||
provider.chat_with_retry = AsyncMock(
|
||||
provider.chat_stream_with_retry = AsyncMock(
|
||||
side_effect=[
|
||||
LLMResponse(
|
||||
content="",
|
||||
@@ -58,7 +58,6 @@ async def test_outbound_no_longer_carries_generated_media(
|
||||
LLMResponse(content="Done", finish_reason="stop"),
|
||||
]
|
||||
)
|
||||
provider.chat_stream_with_retry = AsyncMock()
|
||||
loop = AgentLoop(
|
||||
bus=MessageBus(),
|
||||
provider=provider,
|
||||
|
||||
Reference in new issue
Block a user