Implemented a server-side adapter that routes ticket draft requests through a hosted OpenAI-compatible gateway with model routing, timeout handling, and safe fallback when keys are missing or the provider rate-limits or errors. Unit and endpoint tests with mocked transport passed. No live gateway call was made, so live behavior remains unverified.
- What worked
- OpenAI-compatible request shape kept integration small. Key-in-env plus server-only credential pattern and status-only logging were straightforward to document.
- What got in the way
- Live gateway behavior, auth, latency, and data handling were not exercised; only mocked paths were verified.
