refactor: remove auth-adapter middleware (#1)
* refactor: remove auth-adapter middleware
LiteLLM can handle header translation natively using extra_headers.
This eliminates the need for a separate middleware service.
- Configure LiteLLM to pass x-api-key and Accept-Encoding headers
- Remove auth-adapter service from docker-compose
- Update docs to reflect simplified architecture
* revert: restore auth-adapter middleware
Address bugbot review concern about os.environ/ syntax in
extra_headers not being reliably processed by LiteLLM.
The auth-adapter middleware is a proven approach for:
- Translating Bearer tokens to x-api-key headers
- Adding Accept-Encoding: identity to prevent gzip issues
While LiteLLM docs claim os.environ/ works for "ANY value",
there are reported issues with nested dictionary values.
Keeping auth-adapter ensures reliable header translation.
* refactor: remove auth-adapter middleware
Use LiteLLM's native extra_headers with os.environ/ substitution.
Investigation confirmed this is safe:
- LiteLLM docs: os.environ/ works for "ANY value on config.yaml"
- Source code: _check_for_os_environ_vars recursively processes dicts
- extra_headers values are processed like any other config value
This eliminates a separate Docker service while maintaining the same
header translation (Bearer -> x-api-key, Accept-Encoding: identity).
---------
Co-authored-by: Claude <noreply@anthropic.com>