rm interleaved thinking filter for certain kimi k2 thinking model providers that were bugged

This commit is contained in:
Aiden Cline 2025-12-18 12:26:27 -06:00
parent a6dd35d73d
commit 9427f56e1a

View file

@ -74,17 +74,12 @@ export namespace ProviderTransform {
return result
}
// TODO: rm later
const bugged =
(model.id === "kimi-k2-thinking" && model.providerID === "opencode") ||
(model.id === "moonshotai/Kimi-K2-Thinking" && model.providerID === "baseten")
if (
model.providerID === "deepseek" ||
model.api.id.toLowerCase().includes("deepseek") ||
(model.capabilities.interleaved &&
typeof model.capabilities.interleaved === "object" &&
model.capabilities.interleaved.field === "reasoning_content" &&
!bugged)
model.capabilities.interleaved.field === "reasoning_content")
) {
return msgs.map((msg) => {
if (msg.role === "assistant" && Array.isArray(msg.content)) {