drop citation_options from cohere (#31543)
This commit is contained in:
parent
f1c31f4eba
commit
db9391e8a6
2 changed files with 0 additions and 22 deletions
|
|
@ -1109,9 +1109,6 @@ export function options(input: {
|
||||||
}
|
}
|
||||||
|
|
||||||
const modelId = input.model.api.id.toLowerCase()
|
const modelId = input.model.api.id.toLowerCase()
|
||||||
if (modelId.includes("north-mini-code") && input.model.api.npm === "@ai-sdk/openai-compatible") {
|
|
||||||
result["options"] = { citation_options: { mode: "disabled" } }
|
|
||||||
}
|
|
||||||
|
|
||||||
// MiniMax's Anthropic interface defaults thinking off, unlike Chat Completions.
|
// MiniMax's Anthropic interface defaults thinking off, unlike Chat Completions.
|
||||||
if (modelId.includes("minimax-m3") && input.model.api.npm === "@ai-sdk/anthropic") {
|
if (modelId.includes("minimax-m3") && input.model.api.npm === "@ai-sdk/anthropic") {
|
||||||
|
|
|
||||||
|
|
@ -2483,25 +2483,6 @@ describe("ProviderTransform.message - cache control on gateway", () => {
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
|
|
||||||
describe("ProviderTransform.options - Cohere North", () => {
|
|
||||||
test("disables citations by default for north-mini-code-1-0", () => {
|
|
||||||
const result = ProviderTransform.options({
|
|
||||||
model: {
|
|
||||||
id: "cohere/north-mini-code-1-0",
|
|
||||||
providerID: "cohere",
|
|
||||||
api: {
|
|
||||||
id: "North-Mini-Code-1-0-latest",
|
|
||||||
url: "https://api.cohere.com/compatibility/v1",
|
|
||||||
npm: "@ai-sdk/openai-compatible",
|
|
||||||
},
|
|
||||||
capabilities: { reasoning: true },
|
|
||||||
} as any,
|
|
||||||
sessionID: "test-session-123",
|
|
||||||
})
|
|
||||||
expect(result.options).toEqual({ citation_options: { mode: "disabled" } })
|
|
||||||
})
|
|
||||||
})
|
|
||||||
|
|
||||||
describe("ProviderTransform.temperature - Cohere North", () => {
|
describe("ProviderTransform.temperature - Cohere North", () => {
|
||||||
test("defaults north-mini-code models to 1.0", () => {
|
test("defaults north-mini-code models to 1.0", () => {
|
||||||
expect(ProviderTransform.temperature({ id: "cohere/North-Mini-Code-1-0-latest" } as any)).toBe(1.0)
|
expect(ProviderTransform.temperature({ id: "cohere/North-Mini-Code-1-0-latest" } as any)).toBe(1.0)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue