perf(llm): google sdk imported when the agent is built, in a worker thread through utils.imports.preload
This commit is contained in:
1 parent
85ce05a55e
commit
4d2ed061ea
2 files changed
+15
-3
No files matched your search
@@ -0,0 +1,6 @@
|
||||
import asyncio
|
||||
from importlib import import_module
|
||||
|
||||
|
||||
async def preload(module: str) -> None:
|
||||
await asyncio.to_thread(import_module, module)
|
||||
Reference in new issue
Block a user