diff --git a/platform/backend/app/core/nvidia_client.py b/platform/backend/app/core/nvidia_client.py index db90ca2..b17f5c8 100644 --- a/platform/backend/app/core/nvidia_client.py +++ b/platform/backend/app/core/nvidia_client.py @@ -30,7 +30,7 @@ _API_KEYS = { # 代码级回退默认值(实际配置优先从 DB 读取) _FALLBACK = { "opencode-go": {"base_url": "https://opencode.ai/zen/go/v1", "model": "deepseek-v4-flash"}, - "nvidia": {"base_url": "https://integrate.api.nvidia.com/v1", "model": "stepfun-ai/step-3.5-flash"}, + "nvidia": {"base_url": "https://integrate.api.nvidia.com/v1", "model": "stepfun-ai/step-3.7-flash"}, "sensenova": {"base_url": "https://token.sensenova.cn/v1", "model": "deepseek-v4-flash"}, } diff --git a/platform/frontend/admin.html b/platform/frontend/admin.html index c5ef28e..4c9a412 100644 --- a/platform/frontend/admin.html +++ b/platform/frontend/admin.html @@ -608,7 +608,7 @@ - + diff --git a/scripts/compliance_optimizer.py b/scripts/compliance_optimizer.py index 551be62..d76e068 100644 --- a/scripts/compliance_optimizer.py +++ b/scripts/compliance_optimizer.py @@ -182,7 +182,7 @@ def polish_with_llm(html: str, platform: str, remaining_issues: Optional[List[Di prompt = get_prompt("compliance_fix", issues_desc=issues_desc, html=html) else: prompt = get_prompt("compliance_polish", html=html) - polished = call_llm(prompt, provider=None, temperature=temperature, max_tokens=max_tokens, system_prompt=system_prompt) + polished = call_llm(prompt, provider="sensenova", temperature=temperature, max_tokens=max_tokens, system_prompt=system_prompt) polished = clean_html_content(polished) polished = strip_ai_preface(polished) polished = strip_thinking_html(polished)