litellm icon indicating copy to clipboard operation
litellm copied to clipboard

Update ollama.py

Open 502dxceit opened this issue 1 year ago • 2 comments

fix ollama stream response, use requests instead of httpx, which httpx is not work there(it may take http status code 400)

Title

Relevant issues

OpenInterpreter/open-interpreter#1274

Type

🐛 Bug Fix

Changes

use requests instead of httpx in ollama.py:320

work well on my computer, it fixed the same issue mentioned above

502dxceit avatar Jul 17 '24 14:07 502dxceit

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
litellm ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jul 17, 2024 2:56pm

vercel[bot] avatar Jul 17 '24 14:07 vercel[bot]

hi @502dxceit thank you for this pr. can you share a test script for repro

krrishdholakia avatar Jul 18 '24 05:07 krrishdholakia

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.
You have signed the CLA already but the status is still pending? Let us recheck it.

CLAassistant avatar Apr 22 '25 22:04 CLAassistant

This pull request has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.

github-actions[bot] avatar Jul 22 '25 00:07 github-actions[bot]