Skip to content

Call to openai should be async when in async context #760

Closed
@jonathan-fraser-altium

Description

The current release adds support for async functions calls. However, the bottom call to openai is still sync. This basically precludes using this in any true async system as calls to the llm are the bottleneck. Openai does have an async client in its newer releases which we should utilize when the conversation or reply is initiated as async.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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