mirror of
https://github.com/ollama/ollama-python.git
synced 2026-07-21 09:05:23 -04:00
Exception: Attempted to call a sync iterator on an async stream. #157
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @nlp4everyone on GitHub (Nov 4, 2024).
When i try to stream tokens from Async Client, sometimes this exception happens:


This is my code, from example of Official Ollama Github:
Anybody encountered this issue before?
@xcq2000 commented on GitHub (Nov 5, 2024):
try close the VPN
@ParthSareen commented on GitHub (Dec 23, 2024):
Closing this out - let me know if you're still running into this :) @nlp4everyone