Skip to content

Commit bc469b0

Browse files
authored
add xhigh and max to all fable-5 providers (#6490)
related to #6374
1 parent 81de570 commit bc469b0

3 files changed

Lines changed: 8 additions & 9 deletions

File tree

packages/ai/scripts/generate-models.ts

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -545,10 +545,7 @@ function applyThinkingLevelMetadata(model: Model<any>): void {
545545
) {
546546
mergeThinkingLevelMap(model, { xhigh: "xhigh", max: "max" });
547547
}
548-
if (
549-
(model.api === "anthropic-messages" || model.api === "bedrock-converse-stream") &&
550-
model.id.includes("fable-5")
551-
) {
548+
if (model.id.includes("fable-5")) {
552549
mergeThinkingLevelMap(model, { off: null, xhigh: "xhigh", max: "max" });
553550
}
554551
if (model.api === "anthropic-messages" && isAnthropicAdaptiveThinkingModel(model.id)) {

packages/ai/src/providers/github-copilot.models.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ export const GITHUB_COPILOT_MODELS = {
1313
headers: {"User-Agent":"GitHubCopilotChat/0.35.0","Editor-Version":"vscode/1.107.0","Editor-Plugin-Version":"copilot-chat/0.35.0","Copilot-Integration-Id":"vscode-chat"},
1414
compat: {"supportsStore":false,"supportsDeveloperRole":false,"supportsReasoningEffort":false},
1515
reasoning: true,
16+
thinkingLevelMap: {"off":null,"xhigh":"xhigh","max":"max"},
1617
input: ["text", "image"],
1718
cost: {
1819
input: 10,

packages/ai/src/providers/openrouter.models.ts

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -192,6 +192,7 @@ export const OPENROUTER_MODELS = {
192192
baseUrl: "https://openrouter.ai/api/v1",
193193
compat: {"thinkingFormat":"openrouter","cacheControlFormat":"anthropic"},
194194
reasoning: true,
195+
thinkingLevelMap: {"off":null,"xhigh":"xhigh","max":"max"},
195196
input: ["text", "image"],
196197
cost: {
197198
input: 10,
@@ -4687,13 +4688,13 @@ export const OPENROUTER_MODELS = {
46874688
thinkingLevelMap: {"xhigh":"xhigh"},
46884689
input: ["text"],
46894690
cost: {
4690-
input: 0.92,
4691-
output: 3,
4692-
cacheRead: 0.18,
4691+
input: 0.84,
4692+
output: 2.64,
4693+
cacheRead: 0.156,
46934694
cacheWrite: 0,
46944695
},
4695-
contextWindow: 1048576,
4696-
maxTokens: 1048576,
4696+
contextWindow: 1024000,
4697+
maxTokens: 128000,
46974698
} satisfies Model<"openai-completions">,
46984699
"z-ai/glm-5v-turbo": {
46994700
id: "z-ai/glm-5v-turbo",

0 commit comments

Comments
 (0)