Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: replace anyio.Lock with asyncio.Lock to resolve lock handling issues #1871

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

sergey21000
Copy link

Fixes #1861

Using llama_cpp.server with "stream": true parameter resulted in RuntimeError: The current task is not holding this lock error.
Using asyncio.Lock() instead of anyio.Lock() fixes this error.

@agronholm
Copy link

If this happens, then something else is being done wrong. Simply bypassing such checks isn't going to fix the root issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Crash due to "The current task is not holding this lock" when {"stream": true}
2 participants