ignore: tmp transform exclusion
This commit is contained in:
parent
439aebb4e9
commit
7b4f852f33
1 changed files with 6 additions and 1 deletions
|
|
@ -74,12 +74,17 @@ export namespace ProviderTransform {
|
||||||
return result
|
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 (
|
if (
|
||||||
model.providerID === "deepseek" ||
|
model.providerID === "deepseek" ||
|
||||||
model.api.id.toLowerCase().includes("deepseek") ||
|
model.api.id.toLowerCase().includes("deepseek") ||
|
||||||
(model.capabilities.interleaved &&
|
(model.capabilities.interleaved &&
|
||||||
typeof model.capabilities.interleaved === "object" &&
|
typeof model.capabilities.interleaved === "object" &&
|
||||||
model.capabilities.interleaved.field === "reasoning_content")
|
model.capabilities.interleaved.field === "reasoning_content" &&
|
||||||
|
!bugged)
|
||||||
) {
|
) {
|
||||||
return msgs.map((msg) => {
|
return msgs.map((msg) => {
|
||||||
if (msg.role === "assistant" && Array.isArray(msg.content)) {
|
if (msg.role === "assistant" && Array.isArray(msg.content)) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue