mirror of
https://github.com/tiennm99/litellm.git
synced 2026-08-19 14:23:49 +00:00
AgentCore MCP server endpoints require the Accept header to contain both application/json and text/event-stream per the MCP specification (Streamable HTTP transport). Without this header, requests are rejected with a 406 Not Acceptable error (JSON-RPC code -32011). Sets the Accept header at the top of sign_request() so both JWT/Bearer and SigV4 authentication paths include it.
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