Model Configuration Guide
A Model in Wegent defines the AI model configuration, specifying which AI service to use, how to authenticate, and which model to employ. This guide will help you configure models through the Web interface.
π Table of Contentsβ
- What is a Model
- Model Selection Guide
- Configuring Models via Web Interface
- API Key Acquisition
- Testing Model Connection
- Using Models in Bots
- Frequently Asked Questions
π― What is a Modelβ
A Model is the "brain" of a Bot, determining which AI model the Bot uses for thinking and reasoning.
Position in Architectureβ
Agent (Team) = Bot(s) + Collaboration Mode
Bot = Executor (Shell) + Model (Brain) + Prompt (Personality)
Analogy:
- Executor (Shell): The runtime environment (ClaudeCode, Agno, Dify, Chat)
- Model: The AI brain (Claude, GPT-4, Gemini)
- Prompt: The personality and expertise
Model Typesβ
Wegent supports multiple model types:
| Type | Description | Use Cases |
|---|---|---|
| LLM | Large Language Models for chat and code | General AI tasks, coding |
| Embedding | Text embedding models | Knowledge base, RAG |
| Rerank | Reranking models | Search result optimization |
π Model Selection Guideβ
Anthropic Claude Series (Recommended for Code)β
| Model | Speed | Cost | Capability | Best For |
|---|---|---|---|---|
| Claude Haiku 4.5 | β‘β‘β‘ Fast | π° Low | ββ Basic | Simple tasks, documentation |
| Claude Sonnet 4 | β‘β‘ Medium | π°π° Medium | ββββ Strong | Daily development (Recommended) |
| Claude Opus 4 | β‘ Slow | π°π°π° High | βββββ Strongest | Complex architecture |
OpenAI GPT Seriesβ
| Model | Speed | Cost | Capability | Best For |
|---|---|---|---|---|
| GPT-4o | β‘β‘ Medium | π°π° Medium | ββββ Strong | General tasks (Recommended) |
| GPT-4 Turbo | β‘β‘ Medium | π°π° Medium | ββββ Strong | Complex reasoning |
| GPT-3.5 Turbo | β‘β‘β‘ Fast | π° Low | βββ Medium | Quick prototyping |
Google Gemini Seriesβ
| Model | Speed | Cost | Capability | Best For |
|---|---|---|---|---|
| Gemini 3 Pro | β‘β‘ Medium | π°π° Medium | ββββ Strong | Multimodal tasks |
| Gemini 2.5 Flash | β‘β‘β‘ Fast | π° Low | βββ Medium | Quick responses |
Recommendations by Task Typeβ
| Task Type | Recommended Model | Alternative |
|---|---|---|
| Daily Development | Claude Sonnet 4 | GPT-4o |
| Simple Tasks | Claude Haiku 4.5 | GPT-3.5 Turbo |
| Code Review | Claude Sonnet 4 | GPT-4o |
| Complex Architecture | Claude Opus 4 | GPT-4 |
| Documentation | Claude Haiku 4.5 | GPT-3.5 Turbo |
π Configuring Models via Web Interfaceβ
Step 1: Navigate to Model Settingsβ
- Log in to Wegent Web interface
- Click Settings in the sidebar
- Select the Models tab
You'll see a unified model list showing both public (system) and your personal models.
Step 2: Create a New Modelβ
- Click the Create Model button
- Fill in the model configuration form:
Basic Informationβ
| Field | Required | Description |
|---|---|---|
| Model Type | Yes | Select: LLM, Embedding, or Rerank |
| Model ID | Yes | Unique identifier (lowercase, hyphens allowed) |
| Display Name | No | Human-readable name for the UI |
Provider Configurationβ
| Field | Required | Description |
|---|---|---|
| Model Protocol | Yes | OpenAI, Anthropic, Gemini, etc. |
| Model ID | Yes | Select from presets or enter custom |
| API Key | Yes | Your API key from the provider |
| Base URL | No | Custom endpoint (for proxies) |
Step 3: Configure Model Detailsβ
For LLM Models:
Model Protocol: OpenAI / Anthropic / Gemini
Model ID: gpt-4o / claude-sonnet-4 / gemini-3-pro
API Key: sk-xxx... / sk-ant-xxx...
Base URL: (optional, for proxy services)
For Embedding Models:
Model Protocol: OpenAI / Cohere / Jina
Model ID: text-embedding-3-small
Dimensions: 1536 (optional)
For Rerank Models:
Model Protocol: Cohere / Jina
Model ID: rerank-english-v3.0
Top N: 10 (optional)
Step 4: Test Connectionβ
Before saving, click Test Connection to verify:
- β API Key validity
- β Model availability
- β Network connectivity
Step 5: Save Configurationβ
Click Save to create the model. It will appear in your model list and can be used in Bot configurations.
π API Key Acquisitionβ
Anthropic API Keyβ
- Visit Anthropic Console
- Log in or create an account
- Click Create Key
- Copy and save the key (format:
sk-ant-api03-xxx...)
β οΈ Important: API Key is only shown once!
OpenAI API Keyβ
- Visit OpenAI Platform
- Log in or create an account
- Click Create new secret key
- Copy and save the key (format:
sk-xxx...)
Google Gemini API Keyβ
- Visit Google AI Studio
- Log in with your Google account
- Click Create API Key
- Copy and save the key (format:
AIza...)
Security Best Practicesβ
β Do:
- Store keys in environment variables
- Use key management services for production
- Rotate keys regularly
- Limit access to authorized team members
β Don't:
- Commit keys to Git repositories
- Share keys in public places
- Write keys in frontend code
- Store keys in plain text files
π Testing Model Connectionβ
Via Web Interfaceβ
- In the Model Edit dialog, fill in all required fields
- Click the Test Connection button
- Check the result:
- β "Successfully connected" - Configuration is valid
- β Error message - Check your settings
Common Test Errorsβ
| Error | Cause | Solution |
|---|---|---|
| 401 Unauthorized | Invalid API Key | Regenerate and update key |
| 404 Not Found | Wrong model ID | Check model name spelling |
| 429 Rate Limit | Too many requests | Wait and retry |
| Network Error | Connection issue | Check network/proxy settings |
π€ Using Models in Botsβ
Method 1: Select from Dropdown (Recommended)β
When creating or editing a Bot:
- In the Bind Model section, keep "Advanced Mode" OFF
- Select a model from the dropdown list
- The dropdown shows both public and your personal models
Method 2: Advanced Mode (Custom Configuration)β
For custom model configurations:
- Toggle Advanced Mode ON
- Select the Model Protocol (OpenAI/Claude/Gemini)
- Enter the JSON configuration:
{
"env": {
"model": "openai",
"model_id": "gpt-4o",
"api_key": "sk-xxx...",
"base_url": "https://api.openai.com/v1"
}
}
Per-Task Model Overrideβ
When sending a task, you can override the Bot's default model:
- In the chat input area, click the Model selector
- Choose a different model
- Optionally enable Force Override to ensure your selection is used
β οΈ Frequently Asked Questionsβ
Q1: What's the difference between public and personal models?β
| Type | Description | Visibility |
|---|---|---|
| Public | System-provided models | All users |
| Personal | Your custom configurations | Only you |
Personal models take priority when names conflict.
Q2: How do I use a proxy service?β
Set the Base URL field to your proxy endpoint:
OpenRouter: https://openrouter.ai/api/v1
Custom Proxy: https://your-proxy.example.com
Q3: Why can't I see my model in the Bot dropdown?β
Check:
- Model status is "Available"
- Model type matches the executor (e.g., Anthropic for ClaudeCode)
- Model is an LLM type (not Embedding/Rerank)
Q4: How do I control costs?β
Strategy 1: Use appropriate models
- Simple tasks β Claude Haiku / GPT-3.5
- Complex tasks β Claude Sonnet / GPT-4o
Strategy 2: Set usage limits
- Configure limits in your API provider's console
- Monitor usage regularly
Q5: Can I use the same API key for multiple models?β
Yes! You can create multiple model configurations with the same API key but different model IDs.
π Related Resourcesβ
Next Stepsβ
- Agent Settings - Configure agents and bots with models
Referenceβ
π¬ Get Helpβ
Need assistance?
- π Check FAQ
- π Submit GitHub Issue
- π¬ Join community discussions
Configure your models and power up your AI agents! π