fix: 接入前端V1路由+菜单, 更新LLM网关配置(DeepSeek+QwenVL)及模型定价

This commit is contained in:
2026-08-13 11:25:58 +08:00
parent 4e9fed6266
commit 6e5eb92022
+4 -2
View File
@@ -99,11 +99,13 @@ class LLMGateway:
"""Estimate cost in cents. Rough pricing, adjustable."""
# Per 1M tokens, in cents (1 USD = 100 cents)
pricing = {
"gpt-4o": {"input": 250, "output": 1000}, # $2.50 / $10 per 1M
"gpt-4o-mini": {"input": 15, "output": 60}, # $0.15 / $0.60 per 1M
"gpt-4o": {"input": 250, "output": 1000},
"gpt-4o-mini": {"input": 15, "output": 60},
"gpt-4-turbo": {"input": 1000, "output": 3000},
"deepseek-chat": {"input": 14, "output": 28},
"deepseek-reasoner": {"input": 55, "output": 219},
"deepseek-v4-flash": {"input": 14, "output": 28},
"qwen3.6-plus": {"input": 40, "output": 120},
}
rates = pricing.get(model, {"input": 15, "output": 60}) # default: cheap
cost = (