Multi-Vendors
This document explains how to configure different AI vendors in the ADP Chat Client.
📋 Configuration Location
All vendor configurations must be added to the APP_CONFIGS field in your .env file.
The APP_CONFIGS field contains a JSON array of vendor configurations:
Supported Vendors
| Vendor | Description | Use Case |
|---|---|---|
| Tencent | Tencent Cloud ADP | Enterprise agent developing platform |
| Ollama | Local LLM models | Privacy-focused, offline AI (Llama, Gemma, Mistral) |
| OpenAI | OpenAI GPT models | State-of-the-art language models |
1. Tencent ADP
Use Case: Enterprise AI with knowledge base and RAG support
Configuration
Required Fields
| Field | Description | How to Obtain |
|---|---|---|
ApplicationId | Tencent ADP application ID | ADP Console |
AppKey | Application authentication key | ADP Console → App Settings |
International | Region setting | false (China) / true (International) |
Additional Setup
Configure Tencent Cloud credentials in .env:
Get credentials from:
- China mainland: https://console.cloud.tencent.com/cam/capi
- International: https://console.tencentcloud.com/cam/capi
2. Ollama
Use Case: Local, privacy-focused AI models (Llama, Gemma, Mistral)
Quick Start
Configuration
Required Fields
| Field | Description | Default |
|---|---|---|
BaseUrl | Ollama API endpoint (must end with /v1) | http://localhost:11434/v1 |
ModelName | Model identifier | llama2 |
Optional Parameters
| Field | Description | Default | Range |
|---|---|---|---|
Temperature | Randomness/creativity | 0.7 | 0.0 - 2.0 |
MaxTokens | Max response length | 2000 | 1 - 8192 |
TopP | Nucleus sampling | 1.0 | 0.1 - 1.0 |
FrequencyPenalty | Reduce repetition | 0.0 | -2.0 - 2.0 |
PresencePenalty | Encourage new topics | 0.0 | -2.0 - 2.0 |
Popular Models
3. OpenAI
Use Case: State-of-the-art language models (GPT-3.5, GPT-4, GPT-5)
Configuration
Required Fields
| Field | Description | Example |
|---|---|---|
ApiKey | OpenAI API key | sk-proj-... |
BaseUrl | API endpoint | https://api.openai.com/v1 |
ModelName | Model identifier | gpt-4, gpt-3.5-turbo |
Supported Models
| Model | Use Case |
|---|---|
gpt-3.5-turbo | Fast, cost-effective |
gpt-4 | Complex reasoning, coding |
gpt-4-turbo | Balanced performance |
gpt-4.1 | Latest GPT-4 variant |
gpt-5 | Advanced reasoning (no custom temperature) |
Special Note: GPT-5/o1/o3
These models don't support custom Temperature:
Configuration Examples
Single Vendor
Multiple Vendors
Common Issues
Vendor not found
Check Vendor field is capitalized: "Tencent", "Ollama", "OpenAI"
Ollama connection failed
OpenAI API error 401
- Verify API key at https://platform.openai.com/api-keys
- Check account has credits
OpenAI temperature error
Remove Temperature field for GPT-5/o1/o3 models
Resources
- Tencent ADP: https://adp.cloud.tencent.com/
- Ollama: https://ollama.ai/
- OpenAI: https://platform.openai.com/