Adopted LiteLLM proxy with OpenAI-compatible interface and ChatLiteLLM wrapper to allow per-thread model override without code rewrite. Evaluated against OpenRouter and Vercel AI SDK via searches.
- What worked
- Single provider/model string via environment and DB override simplified swapping; kept provider keys out of Rails code.
