fix(user-secret): 龙抬头渠道模型从 gm-3.5-flash-lite 改回 gm-3.1-flash-lite(2026-11-16 用户拍板;贞贞不变,检测/外观专利/相似ASIN 映射与注释同步)

This commit is contained in:
2026-11-16 19:45:59 +08:00
parent 8413cd335e
commit 61c361222d
6 changed files with 11 additions and 11 deletions
@@ -800,7 +800,7 @@ public class AppearancePatentLlmClient {
recordSecretUsage();
Map<String, Object> body = buildChatBody(model, system, userText, images, responseFormat);
String host = resolveHost();
// 渠道模型映射:龙抬头那边统一叫 gm-3.5-flash-lite,直接发贞贞的模型名会 model_not_found
// 渠道模型映射:龙抬头那边统一叫 gm-3.1-flash-lite,直接发贞贞的模型名会 model_not_found
String requestModel = LlmChannel.modelForHost(host, model);
body.put("model", requestModel);
// 思考参数按渠道补:贞贞把 thinking 写在模型名里,龙抬头要显式传(复刻现网的 thinking-medium)
@@ -188,7 +188,7 @@ public class SimilarAsinLlmClient {
recordSecretUsage();
Map<String, Object> body = buildChatBody(model, system, userText, images, responseFormat);
String host = resolveHost();
// 渠道模型映射:龙抬头那边统一叫 gm-3.5-flash-lite,直接发贞贞的模型名会 model_not_found
// 渠道模型映射:龙抬头那边统一叫 gm-3.1-flash-lite,直接发贞贞的模型名会 model_not_found
String requestModel = LlmChannel.modelForHost(host, model);
body.put("model", requestModel);
// 思考参数按渠道补:贞贞把 thinking 写在模型名里,龙抬头要显式传(复刻现网的 thinking-medium)
@@ -542,7 +542,7 @@ public class UserApiSecretCheckService {
private CheckOutcome probeOnce(UserSecretModule module, String plainApiKey, String proxyUrl, boolean viaProxy,
String channel) {
String host = module.resolveLlmHost(appearancePatentProperties, similarAsinProperties, channel);
// 检测也要按渠道换模型名:龙抬头那边叫 gm-3.5-flash-lite,发贞贞的名字会 404/model_not_found,
// 检测也要按渠道换模型名:龙抬头那边叫 gm-3.1-flash-lite,发贞贞的名字会 404/model_not_found,
// 用户会误以为自己的密钥坏了
String model = LlmChannel.modelForHost(host, userSecretProperties.getCheckModel());
String url = joinUrl(host, "/v1/chat/completions");
@@ -14,7 +14,7 @@ import java.util.Locale;
public enum LlmChannel {
LONGTAITOU("longtaitou", "龙抬头", "https://longtaitou.token6688.com",
"gm-3.5-flash-lite", true, "medium"),
"gm-3.1-flash-lite", true, "medium"),
T8STAR("t8star", "贞贞", "https://ai.t8star.org", null, false, null);
/** 新建配置的默认渠道(2026-10-30 用户拍板:默认仍是贞贞,龙抬头手动切)。 */
@@ -28,7 +28,8 @@ public enum LlmChannel {
*
* <p>两家中转的模型目录不同名:本系统业务配置写的是贞贞的
* {@code gemini-3.1-flash-lite-preview-thinking-medium} 等,龙抬头那边统一叫
* {@code gm-3.5-flash-lite}(2026-11-09 用户指定:龙抬头切 3.5,贞贞仍留 3.1)。
* {@code gm-3.1-flash-lite}(2026-11-16 用户拍板:龙抬头从 3.5 改回 3.1 lite,
* 2026-11-09 曾切到 {@code gm-3.5-flash-lite};贞贞始终 3.1 不变)。
* 不映射直接切渠道会 model_not_found。</p>
*/
private final String defaultModel;