Skip to content

Conversation

@mohamedjihedriahi
Copy link

Describe the changes you have made:

This PR fixes an httpx.RemoteProtocolError that occurs when connecting to local servers (like llama-swap) that send malformed HTTP headers (specifically multiple Transfer-Encoding headers).

Specific changes:

  • Upgraded litellm dependency to handle looser HTTP parsing.
  • Added a specific exception handler for httpx.RemoteProtocolError.
  • Refactored the code to handle optional server dependencies gracefully.

Reference any relevant issues (e.g. "Fixes #000"):

Fixes #1646

Pre-Submission Checklist (optional but appreciated):

  • I have included relevant documentation updates (stored in /docs)
  • I have read docs/CONTRIBUTING.md
  • I have read docs/ROADMAP.md

OS Tests (optional but appreciated):

  • Tested on Windows
  • Tested on MacOS
  • Tested on Linux

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.

Unable to use with llama-swap and llama-cpp

1 participant