66 lines
1.6 KiB
JSON
66 lines
1.6 KiB
JSON
{
|
|
"providers": [
|
|
{
|
|
"type": "openai",
|
|
"name": "openai",
|
|
"api_key": "sk-xxx",
|
|
"base_url": "https://api.openai.com/v1",
|
|
"models": [
|
|
"gpt-3.5-turbo",
|
|
"gpt-4",
|
|
"gpt-4o",
|
|
"text-embedding-ada-002"
|
|
]
|
|
},
|
|
{
|
|
"type": "openrouter",
|
|
"name": "openrouter",
|
|
"api_key": "sk-or-xxx",
|
|
"base_url": "https://openrouter.ai/api/v1",
|
|
"models": [
|
|
"openai/gpt-4o",
|
|
"anthropic/claude-3.5-sonnet",
|
|
"google/gemini-pro",
|
|
"meta-llama/llama-3.1-70b-instruct"
|
|
]
|
|
},
|
|
{
|
|
"type": "siliconflow",
|
|
"name": "siliconflow",
|
|
"api_key": "sk-xxx",
|
|
"base_url": "https://api.siliconflow.cn/v1",
|
|
"models": [
|
|
"deepseek-ai/DeepSeek-R1",
|
|
"deepseek-ai/DeepSeek-V3",
|
|
"Qwen/Qwen3-72B",
|
|
"Qwen/Qwen3-14B"
|
|
]
|
|
}
|
|
],
|
|
"model_mapping": {
|
|
"gpt-3.5-turbo": "openai",
|
|
"gpt-4": "openai",
|
|
"gpt-4o": "openai",
|
|
"text-embedding-ada-002": "openai",
|
|
"openai/gpt-4o": "openrouter",
|
|
"anthropic/claude-3.5-sonnet": "openrouter",
|
|
"google/gemini-pro": "openrouter",
|
|
"meta-llama/llama-3.1-70b-instruct": "openrouter",
|
|
"deepseek-ai/DeepSeek-R1": "siliconflow",
|
|
"deepseek-ai/DeepSeek-V3": "siliconflow",
|
|
"Qwen/Qwen3-72B": "siliconflow",
|
|
"Qwen/Qwen3-14B": "siliconflow"
|
|
},
|
|
"routes": {
|
|
"cost_optimized": {
|
|
"provider": "openrouter",
|
|
"model": "meta-llama/llama-3.1-70b-instruct",
|
|
"strategy": "lowest_cost"
|
|
},
|
|
"performance_optimized": {
|
|
"provider": "openai",
|
|
"model": "gpt-4o",
|
|
"strategy": "highest_performance"
|
|
}
|
|
}
|
|
} |