fix: bump openrouter sdk version to resolve deepseek reasoning issue (bug was in sdk pkg) (#24435)
This commit is contained in:
@@ -193,7 +193,11 @@ function normalizeMessages(
|
||||
})
|
||||
}
|
||||
|
||||
if (typeof model.capabilities.interleaved === "object" && model.capabilities.interleaved.field) {
|
||||
if (
|
||||
typeof model.capabilities.interleaved === "object" &&
|
||||
model.capabilities.interleaved.field &&
|
||||
model.api.npm !== "@openrouter/ai-sdk-provider"
|
||||
) {
|
||||
const field = model.capabilities.interleaved.field
|
||||
return msgs.map((msg) => {
|
||||
if (msg.role === "assistant" && Array.isArray(msg.content)) {
|
||||
|
||||
Reference in New Issue
Block a user