OpenAI LLM class and OpenAIEmbedding class both accept a custom api_base. Point them at RunInfra.
Install
LLM
Embeddings
RUNINFRA_CHAT_MODEL and RUNINFRA_EMBEDDING_MODEL to model IDs returned
by GET /v1/models.
Full RAG example
Streaming
Next steps
LangChain
Same idea, different framework.
RAG cookbook
Raw RAG without a framework.
OpenAI compatibility
The contract powering this integration.
Embeddings API
Endpoint parameters and response shape.