Skip to content

feat(bridge): improve anthropic error and header mapping#179

Merged
typelicious merged 7 commits into
mainfrom
codex/anthropic-bridge-errors
Mar 30, 2026
Merged

feat(bridge): improve anthropic error and header mapping#179
typelicious merged 7 commits into
mainfrom
codex/anthropic-bridge-errors

Conversation

@typelicious
Copy link
Copy Markdown
Collaborator

Summary

  • improve Anthropic-compatible error typing from upstream status codes
  • preserve bridge source and model-resolution details in response headers
  • return the final upstream status instead of collapsing all failures into a generic 502

Testing

  • env PYTHONPATH=. ./.venv-check-313/bin/pytest -q tests/test_anthropic_api.py tests/test_anthropic_bridge.py tests/test_config.py tests/test_request_hooks.py
  • rtk ruff check faigate/main.py tests/test_anthropic_api.py
  • rtk ruff format --check faigate/main.py tests/test_anthropic_api.py

@typelicious typelicious merged commit b21933a into main Mar 30, 2026
13 checks passed
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.

1 participant