feat: add server model catalog
This commit is contained in:
+13
-7
@@ -72,14 +72,20 @@ NEXT_PUBLIC_SUPABASE_ANON_KEY=...
|
||||
SUPABASE_SERVICE_ROLE_KEY=...
|
||||
ADMIN_EMAILS=...
|
||||
|
||||
# Either OpenAI:
|
||||
OPENAI_API_KEY=...
|
||||
MASTRA_MODEL=...
|
||||
# Recommended multi-model catalog. The JSON references server-only keys.
|
||||
LLM_DEFAULT_MODEL_ID=deepseek-pro
|
||||
LLM_MODELS_JSON='[{"id":"deepseek-pro","label":"DeepSeek V4 Pro","description":"更适合复杂分析","provider":"openai-compatible","baseURL":"https://api.deepseek.com","apiKeyEnv":"DEEPSEEK_API_KEY","model":"deepseek-v4-pro","creditCost":1},{"id":"gpt-5-mini","label":"ChatGPT 5 Mini","description":"响应稳定、速度均衡","provider":"openai","apiKeyEnv":"OPENAI_API_KEY","model":"openai/gpt-5-mini","creditCost":1}]'
|
||||
DEEPSEEK_API_KEY=<server-secret>
|
||||
OPENAI_API_KEY=<server-secret>
|
||||
|
||||
# Or an OpenAI-compatible provider:
|
||||
LLM_BASE_URL=...
|
||||
LLM_API_KEY=...
|
||||
LLM_MODEL=...
|
||||
# Legacy single-model OpenAI configuration remains supported:
|
||||
# OPENAI_API_KEY=<server-secret>
|
||||
# MASTRA_MODEL=openai/gpt-5-mini
|
||||
|
||||
# Legacy single OpenAI-compatible provider remains supported:
|
||||
# LLM_BASE_URL=https://provider.example/v1
|
||||
# LLM_API_KEY=<server-secret>
|
||||
# LLM_MODEL=provider-model-id
|
||||
|
||||
# Optional VedAstro official upstream; local fallback remains available:
|
||||
VEDASTRO_API_ENDPOINT=...
|
||||
|
||||
Reference in New Issue
Block a user