fix: 接入前端V1路由+菜单, 更新LLM网关配置(DeepSeek+QwenVL)及模型定价
This commit is contained in:
@@ -99,11 +99,13 @@ class LLMGateway:
|
|||||||
"""Estimate cost in cents. Rough pricing, adjustable."""
|
"""Estimate cost in cents. Rough pricing, adjustable."""
|
||||||
# Per 1M tokens, in cents (1 USD = 100 cents)
|
# Per 1M tokens, in cents (1 USD = 100 cents)
|
||||||
pricing = {
|
pricing = {
|
||||||
"gpt-4o": {"input": 250, "output": 1000}, # $2.50 / $10 per 1M
|
"gpt-4o": {"input": 250, "output": 1000},
|
||||||
"gpt-4o-mini": {"input": 15, "output": 60}, # $0.15 / $0.60 per 1M
|
"gpt-4o-mini": {"input": 15, "output": 60},
|
||||||
"gpt-4-turbo": {"input": 1000, "output": 3000},
|
"gpt-4-turbo": {"input": 1000, "output": 3000},
|
||||||
"deepseek-chat": {"input": 14, "output": 28},
|
"deepseek-chat": {"input": 14, "output": 28},
|
||||||
"deepseek-reasoner": {"input": 55, "output": 219},
|
"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
|
rates = pricing.get(model, {"input": 15, "output": 60}) # default: cheap
|
||||||
cost = (
|
cost = (
|
||||||
|
|||||||
Reference in New Issue
Block a user