provider — AI Provider Information
The provider
command provides detailed information about AI providers supported by Rawi, their available models, and setup requirements.
Basic Usage
Section titled “Basic Usage”rawi provider [options]
Options
Section titled “Options”Option | Alias | Description |
---|---|---|
--list | -l | List all supported providers |
--show <provider> | -s | Show detailed provider information |
--models <provider> | List available models for a provider |
Examples
Section titled “Examples”List All Providers
Section titled “List All Providers”# Show all supported providersrawi provider --list
Get Provider Details
Section titled “Get Provider Details”# Get detailed information about OpenAIrawi provider --show openai
# Show Anthropic provider detailsrawi provider --show anthropic
# Get information about local providersrawi provider --show ollama
List Available Models
Section titled “List Available Models”# List OpenAI modelsrawi provider --models openai
# List Anthropic modelsrawi provider --models anthropic
# List Ollama models (if installed)rawi provider --models ollama
Supported Providers
Section titled “Supported Providers”Cloud Providers
Section titled “Cloud Providers”OpenAI
Section titled “OpenAI”- Type: Cloud-based
- Models: GPT-4, GPT-4 Turbo, GPT-3.5 Turbo
- Setup: API key required
- Best for: General purpose, latest AI capabilities
Anthropic
Section titled “Anthropic”- Type: Cloud-based
- Models: Claude 3.5 Sonnet, Claude 3 Opus, Claude 3 Haiku
- Setup: API key required
- Best for: Safety, reasoning, long context
- Type: Cloud-based
- Models: Gemini Pro, Gemini Pro Vision
- Setup: API key required
- Best for: Multimodal tasks, code generation
- Type: Cloud-based
- Models: Grok models
- Setup: API key required
- Best for: Real-time information, conversational AI
- Type: Cloud-based
- Models: Qwen-turbo, Qwen-plus, Qwen-max
- Setup: API key required
- Best for: Multilingual support, efficiency
Enterprise Providers
Section titled “Enterprise Providers”Azure OpenAI
Section titled “Azure OpenAI”- Type: Enterprise cloud
- Models: GPT-4, GPT-3.5 (Azure-hosted)
- Setup: Azure API key and endpoint
- Best for: Enterprise compliance, data residency
Amazon Bedrock
Section titled “Amazon Bedrock”- Type: Enterprise cloud
- Models: Claude, Titan, Jurassic-2
- Setup: AWS credentials
- Best for: AWS integration, multiple model options
Local Providers
Section titled “Local Providers”Ollama
Section titled “Ollama”- Type: Local/Self-hosted
- Models: Llama 2, Code Llama, Mistral, and many others
- Setup: Install Ollama locally
- Best for: Privacy, offline usage, no API costs
LM Studio
Section titled “LM Studio”- Type: Local with GUI
- Models: Various open-source models
- Setup: Install LM Studio application
- Best for: Easy local model management
Provider Comparison
Section titled “Provider Comparison”By Use Case
Section titled “By Use Case”General Development:
- OpenAI GPT-4 — Best overall performance
- Anthropic Claude — Strong reasoning and safety
- Google Gemini — Good for code generation
Privacy-Focused:
- Ollama — Complete local control
- LM Studio — User-friendly local setup
Enterprise:
- Azure OpenAI — Enterprise compliance
- Amazon Bedrock — AWS integration
Cost-Effective:
- OpenAI GPT-3.5 — Good performance, lower cost
- Ollama — No API costs (hardware requirements)
By Model Capabilities
Section titled “By Model Capabilities”Large Context Windows:
- Anthropic Claude (200k tokens)
- Google Gemini Pro (1M+ tokens)
Code Specialization:
- OpenAI GPT-4
- Code Llama (via Ollama)
Multimodal (Text + Images):
- OpenAI GPT-4 Vision
- Google Gemini Pro Vision
Setup Examples
Section titled “Setup Examples”Quick Setup Commands
Section titled “Quick Setup Commands”# OpenAI setuprawi configure --provider openai --model gpt-4 --api-key sk-your-key
# Anthropic setuprawi configure --provider anthropic --model claude-3-5-sonnet-20241022 --api-key sk-ant-your-key
# Ollama setup (after installing Ollama)rawi configure --provider ollama --model llama2 --base-url http://localhost:11434
# Azure OpenAI setuprawi configure --provider azure --model gpt-4 --api-key your-key --base-url https://your-resource.openai.azure.com
Getting API Keys
Section titled “Getting API Keys”OpenAI
Section titled “OpenAI”- Visit platform.openai.com
- Sign up or log in
- Go to API Keys section
- Create new secret key
Anthropic
Section titled “Anthropic”- Visit console.anthropic.com
- Sign up or log in
- Go to API Keys
- Generate new key
- Visit Google AI Studio
- Sign in with Google account
- Get API key from settings
Ollama (Local)
Section titled “Ollama (Local)”- Install from ollama.ai
- Run
ollama pull llama2
(or other models) - No API key needed
Model Selection Guide
Section titled “Model Selection Guide”For Beginners
Section titled “For Beginners”- OpenAI GPT-3.5 Turbo — Good balance of performance and cost
- Ollama Llama 2 — Free local option
For Professional Use
Section titled “For Professional Use”- OpenAI GPT-4 — Best overall capabilities
- Anthropic Claude 3.5 Sonnet — Excellent reasoning
- Azure OpenAI GPT-4 — Enterprise features
For Privacy-Conscious Users
Section titled “For Privacy-Conscious Users”- Ollama — Complete local control
- LM Studio — Local with easy management
For Specific Tasks
Section titled “For Specific Tasks”- Code: OpenAI GPT-4, Code Llama
- Writing: Anthropic Claude, OpenAI GPT-4
- Analysis: Google Gemini, Anthropic Claude
- Multilingual: Qwen, OpenAI GPT-4
Troubleshooting
Section titled “Troubleshooting”Common Provider Issues
Section titled “Common Provider Issues”“Provider not available”
rawi provider --list # Check supported providers
“Invalid API key”
rawi configure --provider <provider> --api-key <new-key>
“Model not found”
rawi provider --models <provider> # Check available models
Ollama connection issues
# Check if Ollama is runningcurl http://localhost:11434/api/tags
See Also
Section titled “See Also”- configure command — Setting up providers
- Supported AI Providers — Detailed provider guide
- Configuration Guide — Complete setup instructions