Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -123,10 +123,18 @@ development:
service: "Ollama"
model: "llama3.2"

tuning_engines:
service: "OpenAI"
access_token: <%= Rails.application.credentials.dig(:tuning_engines, :api_key) %>
base_url: "https://api.tuningengines.com/v1"
model: "gpt-4o-mini"

ruby_llm:
service: "RubyLLM"
```

`tuning_engines` is an OpenAI-compatible gateway configuration for Rails teams that want centralized model routing, policy controls, audit logs, traces, approvals, and cost visibility without changing ActiveAgent code.

## Features

- **Agent-Oriented Programming**: Build AI applications using familiar Rails patterns
Expand Down
21 changes: 21 additions & 0 deletions docs/providers.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,27 @@ GPT-4o, GPT-4.1, GPT-5, and o3 models. Two APIs available: Responses API (defaul

**Choose when:** You need reliable, high-quality responses with strong reasoning. Vision support and structured output work well. Azure OpenAI compatible.

#### OpenAI-compatible gateways

The OpenAI provider also accepts a custom `base_url`, so Rails apps can route ActiveAgent generations through a governed OpenAI-compatible endpoint. For example, [Tuning Engines](https://www.tuningengines.com/) can sit underneath ActiveAgent to centralize model routing, policy controls, audit logs, traces, approvals, and cost visibility:

```yaml
production:
tuning_engines:
service: "OpenAI"
access_token: <%= Rails.application.credentials.dig(:tuning_engines, :api_key) %>
base_url: "https://api.tuningengines.com/v1"
model: "gpt-4o-mini"
```

Then use it like any other generation provider:

```ruby
class SupportAgent < ApplicationAgent
generate_with :tuning_engines, model: "gpt-4o-mini"
end
```

### [OpenRouter](/providers/open_router)
**Best for:** Multi-model flexibility, cost optimization, experimentation

Expand Down