Skip to content

Commit 2372241

Browse files
committed
flush sync
1 parent c610405 commit 2372241

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

python/restate/ext/openai/runner_wrapper.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@ async def pop_item(self) -> TResponseInputItem | None:
179179
return self._items.pop()
180180
return None
181181

182-
async def flush(self) -> None:
182+
def flush(self) -> None:
183183
"""Flush the session items to the context."""
184184
self._ctx().set("items", self._items)
185185

@@ -279,6 +279,6 @@ async def run(
279279
# Flush session items to Restate
280280
session = kwargs.get("session", None)
281281
if session is not None and isinstance(session, RestateSession):
282-
await session.flush()
282+
session.flush()
283283

284284
return result

0 commit comments

Comments
 (0)