Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion packages/core/src/sync/providers/cortecs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ export function buildCortecsModel(
return factorBaseModel(canonical, {
description: existing?.description,
attachment: input.some((value) => value !== "text"),
reasoning: undefined,
reasoning,
reasoning_options: reasoningOptions,
temperature: existing?.temperature,
tool_call: features.has("tools"),
Expand Down
23 changes: 23 additions & 0 deletions packages/core/test/sync.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2167,6 +2167,29 @@ test("preserves authored Cortecs reasoning options missing from the API", () =>
});
});

test("overrides canonical metadata with Cortecs reasoning support", () => {
const model: CortecsModel = {
id: "apertus-70b",
created: 1_775_088_000,
pricing: { currency: "EUR", input_token: 1.25, output_token: 2 },
context_size: 65_536,
input_modalities: ["text"],
output_modalities: ["text"],
supported_features: ["reasoning", "tools"],
};
const existing: ExistingModel = {
base_model: "swiss-ai/apertus-70b",
reasoning: true,
reasoning_options: [],
};

expect(buildCortecsModel(model, existing, existing)).toMatchObject({
base_model: "swiss-ai/apertus-70b",
reasoning: true,
reasoning_options: [],
});
});

test("syncs OpenRouter reasoning efforts from model metadata", () => {
const model = buildOpenRouterModel(openRouterModel({
reasoning: {
Expand Down
12 changes: 1 addition & 11 deletions providers/cortecs/models/apertus-70b.toml
Original file line number Diff line number Diff line change
@@ -1,23 +1,13 @@
name = "apertus-70b"
base_model = "swiss-ai/apertus-70b"
description = "Apertus 70B is an open, multilingual language model designed for research, long-context reasoning, and sovereignty-focused AI systems."
release_date = "2026-07-08"
last_updated = "2026-07-08"
attachment = false
reasoning = true
temperature = false
tool_call = true
structured_output = false
open_weights = false
reasoning_options = []

[cost]
input = 1.393
output = 2.228

[limit]
context = 65_536
output = 65_536

[modalities]
input = ["text"]
output = ["text"]
18 changes: 0 additions & 18 deletions providers/cortecs/models/deepseek-v4-flash.toml

This file was deleted.

Loading