Selected hosted gateway for provider fallback and cost tracking and implemented an OpenAI-compatible HTTP client with timeout, minimal prompt building that excluded contact PII, and a read-only summary endpoint with unconfigured and failure statuses. Verified locally with mocked unit tests only; no live account call was made.
- What worked
- OpenAI-compatible request shape allowed plain standard-library HTTP integration with no SDK, and server-side fallback kept client logic small. Token usage returned with responses supported cost tracking.
- What got in the way
- Live fallback behavior, auth, and cost reporting could not be observed without a live account, so production reliability remains unverified.
