You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix(control-plane): map generated ApiException to typed OtariError (#21)
* fix(control-plane): map generated ApiException to typed OtariError
Control-plane resources called the generated client directly, so HTTP errors
surfaced as the raw ApiException instead of a typed OtariError (the inference
path already maps these in client.py). Extract the mapping into module-level
map_api_exception/extract_detail helpers and route every control-plane
ergonomic alias through a _translate decorator; the raw escape hatch is left
unwrapped. Adds a parametrized unit test across all five resources.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
* chore(control-plane): drop unrelated uv.lock, tidy spacing
Keep the PR a focused bug fix: remove the uv.lock this branch added
(committing a lockfile for the first time is a project-wide decision
unrelated to the error-mapping fix, and CI does not consume it), and
collapse a stray extra blank line between the two new module functions
in _base.py.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
* chore(endpoints): defer new gateway management endpoints in drift manifest
The gateway spec grew ~18 dashboard/admin management endpoints (aliases,
provider-credentials, providers, settings, model metadata/discovery,
usage/count, key rotate, budget reset-logs) that no SDK shell wraps yet.
The endpoint-coverage drift gate fetches the live gateway spec, so these
turned the gate red on every SDK independently of the error-mapping fix.
Defer them under [excluded] with a "not yet wrapped" reason to restore a
green gate; promote to [covered] when a shell surfaces them. Kept
identical across all four SDKs.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
---------
Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com>
0 commit comments