RubyLLM (gateway)
RubyLLM (gateway)
RubyLLM (gateway)
No provider key needed — the Respan gateway handles provider authentication.
Open the Traces page to see your gateway-routed calls with prompts, tokens, and cost.
For OpenAI models it works directly. For non-OpenAI models (Claude, Gemini, etc.), add provider: :openai and assume_model_exists: true to route them through the Respan gateway.
provider: :openai doesn’t mean the model is from OpenAI — it tells RubyLLM to use the OpenAI API protocol to send the request. Without it, RubyLLM would call the provider directly, bypassing Respan. assume_model_exists: true skips RubyLLM’s local model registry check.
See the full model list.
Use RubyLLM contexts to isolate per-tenant configuration.
Set your Respan config in an initializer.
Use acts_as_chat as normal — all LLM calls will be routed through Respan.