forked from retoor/devplacepy
Gateway: auto-resolve request shape per provider and model
An upstream that rejects a key the gateway adds (e.g. thinking) now gets retried with other shapes on a parsable 400/422; the working method is stored per (provider, target model) and applied first-try from then on. Fallback attempts are re-shaped per attempt. Admin list/reset, Devii tools, audit event and ledger resolved_method included. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -119,6 +119,7 @@ Every state-changing action in DevPlace records one append-only row through `dev
|
||||
| `ai.gateway.call` | `services/openai_gateway/gateway.py`, `services/openai_gateway/usage.py` |
|
||||
| `ai.gateway_auth_throttle.tripped` | `services/openai_gateway/service.py` |
|
||||
| `ai.quota.exceeded` | `routers/devii.py`, `services/openai_gateway/service.py` |
|
||||
| `gateway.learned.reset` | `routers/admin/gateway_configs.py` |
|
||||
| `gateway.model.delete` | `routers/admin/gateway_configs.py` |
|
||||
| `gateway.model.update` | `routers/admin/gateway_configs.py` |
|
||||
| `gateway.provider.delete` | `routers/admin/gateway_configs.py` |
|
||||
|
||||
Reference in New Issue
Block a user