mirror of
https://github.com/pewdiepie-archdaemon/odysseus.git
synced 2026-06-16 17:55:26 -04:00
Ignore non-string background stream deltas (#1549)
This commit is contained in:
+3
-1
@@ -53,7 +53,9 @@ async def _drain_agent(sess, messages):
|
||||
if not isinstance(d, dict):
|
||||
continue
|
||||
if "delta" in d:
|
||||
full += d["delta"]
|
||||
delta = d.get("delta")
|
||||
if isinstance(delta, str):
|
||||
full += delta
|
||||
elif d.get("type") == "agent_step":
|
||||
round_num = d.get("round", round_num)
|
||||
elif d.get("type") == "tool_output":
|
||||
|
||||
Reference in New Issue
Block a user