Skip to content

Commit c698a6a

Browse files
restore async for in litellm calls
1 parent f96d492 commit c698a6a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/agentex/lib/core/adapters/llm/adapter_litellm.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,5 +47,5 @@ async def acompletion_stream(
4747
if not kwargs.get("stream"):
4848
raise ValueError("To use streaming, please set stream=True in the kwargs")
4949

50-
async for chunk in llm.acompletion(*args, **kwargs): # type: ignore[misc]
50+
async for chunk in await llm.acompletion(*args, **kwargs): # type: ignore[misc]
5151
yield Completion.model_validate(chunk)

0 commit comments

Comments
 (0)