Skip to content

OpenAILLM(LLMBase) does not use AsyncOpenAI; AsyncMemory still runs sync LLM via asyncio.to_thread #3781

@cainiaowenhou

Description

@cainiaowenhou

🚀 The feature

Inside AsyncMemory, the LLM call is still synchronous and only wrapped with:

asyncio.to_thread(self.llm.generate_response)

This means the LLM workload is executed in a thread pool, not asynchronously,

Motivation, pitch

Thanks

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions