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

Improvement: use ollama's own AsyncClient instead of OpenAI AsyncOpenAI #74

Open
MrCsabaToth opened this issue Nov 4, 2024 · 0 comments

Comments

@MrCsabaToth
Copy link

I'm looking for streamlit ollama parallel calls and found your blog post and video. I notice that in the source https://github.com/mneedham/LearnDataWithMark/blob/main/ollama-parallel/app.py you use AsyncOpenAI. I don't know if there's any specific reason, but I'll try to get rid of the extra dependency and use ollama's AsyncClient: https://github.com/ollama/ollama-python/blob/ebe332b29d5c65aeccfadd4151bf6059ded7049b/examples/async-chat-stream/main.py#L27C19-L27C30

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

No branches or pull requests

1 participant