chore(vendor): import pi 1.3.0
Imported as a linear vendor commit so forge rebases do not replay the upstream root tree. git-subtree-dir: third_party/pi git-subtree-split: 71023aec1546d6d677a65669c5665c0927ce0dd0
This commit is contained in:
1 parent
719370c8f7
commit
6081e3e325
1743 files changed
+205459
-131704
No files matched your search
+10
-5
@@ -4,13 +4,14 @@ import type { Api, Model } from "../src/types.ts";
|
||||
|
||||
const EXPECTED_CURRENT_ADAPTIVE_THINKING_MODELS = [
|
||||
"anthropic/claude-fable-5",
|
||||
"anthropic/claude-haiku-5-5",
|
||||
"anthropic/claude-opus-4-8",
|
||||
"anthropic/claude-opus-5",
|
||||
"anthropic/claude-sonnet-5",
|
||||
"cloudflare-ai-gateway/claude-fable-5",
|
||||
"kimi-coding/kimi-for-coding",
|
||||
"kimi-coding/k3",
|
||||
"kimi-coding/kimi-for-coding-highspeed",
|
||||
"fireworks/accounts/fireworks/models/deepseek-v4p1-flash",
|
||||
"fireworks/accounts/fireworks/models/gpt-oss-120b",
|
||||
"fireworks/accounts/fireworks/models/qwen3p8-max",
|
||||
"opencode/claude-opus-4-8",
|
||||
"opencode/claude-opus-5",
|
||||
"vercel-ai-gateway/anthropic/claude-opus-4.8",
|
||||
@@ -32,8 +33,12 @@ describe("Anthropic adaptive thinking model metadata", () => {
|
||||
|
||||
expect(flaggedModels).toEqual(expect.arrayContaining([...EXPECTED_CURRENT_ADAPTIVE_THINKING_MODELS].sort()));
|
||||
expect(flaggedModels).toEqual(
|
||||
flaggedModels.filter((modelId) =>
|
||||
/(opus[-.](4[-.][678]|5)|sonnet[-.]4[-.]6|sonnet[-.]5|fable[-.]5|kimi-coding\/)/.test(modelId),
|
||||
flaggedModels.filter(
|
||||
(modelId) =>
|
||||
// Regression for #9323: Fireworks uses catalog effort metadata and
|
||||
// verified fallbacks, not a fixed set of adaptive model names.
|
||||
modelId.startsWith("fireworks/") ||
|
||||
/(opus[-.](4[-.][678]|5)|sonnet[-.]4[-.]6|sonnet[-.]5|haiku[-.]5[-.]5|fable[-.]5)/.test(modelId),
|
||||
),
|
||||
);
|
||||
});
|
||||
|
||||
Reference in new issue
Block a user