fix(ai): replay DeepSeek V4 reasoning content

closes #3668
This commit is contained in:
Mario Zechner
2026-04-24 19:32:51 +02:00
parent b4e93feb8c
commit 9b103e5e41
3 changed files with 13 additions and 0 deletions

View File

@@ -1063,6 +1063,15 @@ async function generateModels() {
];
allModels.push(...deepseekV4Models);
for (const candidate of allModels) {
if (candidate.api === "openai-completions" && candidate.id.includes("deepseek-v4")) {
candidate.compat = {
...candidate.compat,
requiresReasoningContentOnAssistantMessages: true,
};
}
}
const minimaxDirectSupportedIds = new Set(["MiniMax-M2.7", "MiniMax-M2.7-highspeed"]);
for (const candidate of allModels) {