Skip to content

armgit / E2B

Public Imported from GitHub
0

Open-source, secure environment with real-world tools for enterprise-grade agents.

Remove comments

Vasek Mlejnsky27e6edce6d57
diff --git a/api-service/codegen/callbacks/logs.py b/api-service/codegen/callbacks/logs.py
index e16ac7dc3..37d25e0a1 100644
--- a/api-service/codegen/callbacks/logs.py
+++ b/api-service/codegen/callbacks/logs.py
@@ -130,18 +130,11 @@ class LogsCallbackHandler(AsyncCallbackHandler):
asyncio.ensure_future(
self._database.push_raw_logs(self._run_id, self._raw_logs)
)
- # await self._database.push_raw_logs(self._run_id, self._raw_logs)
def _push_logs(self, logs: List[Dict[str, str]]) -> None:
- # pass
- # loop = asyncio.get_event_loop()
- # asyncio.ensure_future(
- # )
coro = self._database.push_logs(self._run_id, logs)
self._log_queue.queue.put_nowait(coro)
- # await self._database.push_logs(self._run_id, logs)
-
async def on_llm_start(
self, serialized: Dict[str, Any], prompts: List[str], **kwargs: Any
) -> None: