Run pre-commit (#4163)

This commit is contained in:
Graham Neubig
2024-10-02 00:52:02 -04:00
committed by GitHub
parent 240a470a1d
commit 178dbfaf4a
12 changed files with 40 additions and 22 deletions

View File

@@ -162,7 +162,9 @@ class Session:
'Model does not support image upload, change to a different model or try without an image.'
)
return
asyncio.run_coroutine_threadsafe(self._add_event(event, EventSource.USER), self.agent_session.loop) # type: ignore
asyncio.run_coroutine_threadsafe(
self._add_event(event, EventSource.USER), self.agent_session.loop
) # type: ignore
async def _add_event(self, event, event_source):
self.agent_session.event_stream.add_event(event, EventSource.USER)