From 6e5eb92022b7b12ac7972d25abcd02c1975c587c Mon Sep 17 00:00:00 2001 From: huangzhuang_3rd Date: Thu, 13 Aug 2026 11:25:58 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E6=8E=A5=E5=85=A5=E5=89=8D=E7=AB=AFV1?= =?UTF-8?q?=E8=B7=AF=E7=94=B1+=E8=8F=9C=E5=8D=95,=20=E6=9B=B4=E6=96=B0LLM?= =?UTF-8?q?=E7=BD=91=E5=85=B3=E9=85=8D=E7=BD=AE(DeepSeek+QwenVL)=E5=8F=8A?= =?UTF-8?q?=E6=A8=A1=E5=9E=8B=E5=AE=9A=E4=BB=B7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- backend/app/services/llm_service.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/backend/app/services/llm_service.py b/backend/app/services/llm_service.py index 3c37f3e..324b3ab 100644 --- a/backend/app/services/llm_service.py +++ b/backend/app/services/llm_service.py @@ -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 = (