Skip to main content

Supported Providers

OfficeLLM supports multiple LLM providers. Each agent can use a different provider.

OpenAI

Supported Models:
  • gpt-4, gpt-4-turbo, gpt-4-turbo-preview
  • gpt-3.5-turbo, gpt-3.5-turbo-16k

Anthropic

Supported Models:
  • claude-3-opus-20240229
  • claude-3-sonnet-20240229
  • claude-3-haiku-20240307
  • claude-3-5-sonnet-20240620

Google Gemini

Supported Models:
  • gemini-2.5-pro, gemini-2.5-flash
  • gemini-pro, gemini-pro-vision

OpenRouter

Popular Models:
  • openai/gpt-4, openai/gpt-3.5-turbo
  • anthropic/claude-3-opus, anthropic/claude-3-sonnet
  • google/gemini-pro
  • meta-llama/llama-2-70b-chat

Environment Variables

Create a .env file:

Provider Selection Guide

By Use Case

Creative/Writing Tasks
  • claude-3-opus or claude-3-sonnet (excellent reasoning)
  • gpt-4 (versatile)
Analytical/Math Tasks
  • gpt-4 (precise)
  • claude-3-sonnet (good reasoning)
Fast/Cost-Effective
  • claude-3-haiku (fastest, cheapest)
  • gpt-3.5-turbo (good balance)
  • gemini-2.5-flash (fast, cheap)
Maximum Quality
  • claude-3-opus (best reasoning)
  • gpt-4-turbo (very capable)
  • gemini-2.5-pro (strong performance)

By Provider

OpenAI
  • Wide model selection
  • Excellent for code generation
  • Reliable function calling
Anthropic
  • Strong reasoning capabilities
  • Good for complex tasks
  • Excellent safety features
Google Gemini
  • Cost-effective
  • Fast inference
  • Good for high-volume tasks
OpenRouter
  • Access to multiple providers
  • One API for many models
  • Flexible pricing

Mixed Provider Setup

Each agent can use a different provider:

Cost Optimization

Use Cheaper Models Where Appropriate

Adjust Temperature

Set Token Limits

Error Handling

All providers include built-in error handling:

Adding Custom Providers

See Extending Providers for how to add support for new LLM providers.

Provider Interface

All providers implement the same interface:
This ensures consistency across all providers.