mirror of
https://github.com/tiennm99/litellm.git
synced 2026-07-11 17:05:43 +00:00
d6cd50dfdb
This commit adds support for custom Anthropic-compatible API endpoints that don't follow the standard /v1/messages or /v1/complete path convention. ## Changes - Added LITELLM_ANTHROPIC_DISABLE_URL_SUFFIX environment variable - When set to true, prevents automatic appending of /v1/messages (for anthropic) - When set to true, prevents automatic appending of /v1/complete (for anthropic_text) - Added debug logging to indicate when suffix is being skipped - Maintained full backward compatibility - existing deployments are unaffected
Testing for litellm/
This directory 1:1 maps the the litellm/ directory, and can only contain mocked tests.
The point of this is to:
- Increase test coverage of
litellm/ - Make it easy for contributors to add tests for the
litellm/package and easily run tests without needing LLM API keys.
File name conventions
litellm/proxy/test_caching_routes.pymaps tolitellm/proxy/caching_routes.pytest_<filename>.pymaps tolitellm/<filename>.py