mirror of
https://github.com/cline/cline.git
synced 2026-10-29 17:42:34 +08:00
Update fixed model list (#11591)
This commit is contained in:
File diff suppressed because it is too large
Load Diff
@@ -132,51 +132,6 @@ describe("built-in provider metadata", () => {
|
||||
);
|
||||
});
|
||||
|
||||
it("includes Claude Fable 5 in Anthropic, OpenRouter, Vercel AI Gateway, and Cline model lists", async () => {
|
||||
const anthropicModels = await getModelsForProvider("anthropic");
|
||||
const openRouterModels = await getModelsForProvider("openrouter");
|
||||
const vercelModels = await getModelsForProvider("vercel-ai-gateway");
|
||||
const clineModels = await getModelsForProvider("cline");
|
||||
|
||||
expect(anthropicModels["claude-fable-5"]).toEqual(
|
||||
expect.objectContaining({
|
||||
name: "Claude Fable 5",
|
||||
contextWindow: 1_000_000,
|
||||
maxTokens: 128_000,
|
||||
capabilities: expect.arrayContaining([
|
||||
"tools",
|
||||
"reasoning",
|
||||
"prompt-cache",
|
||||
]),
|
||||
pricing: expect.objectContaining({
|
||||
input: 10,
|
||||
output: 50,
|
||||
cacheRead: 1,
|
||||
cacheWrite: 12.5,
|
||||
}),
|
||||
}),
|
||||
);
|
||||
expect(openRouterModels["anthropic/claude-fable-5"]).toEqual(
|
||||
expect.objectContaining({
|
||||
id: "anthropic/claude-fable-5",
|
||||
name: "Claude Fable 5",
|
||||
contextWindow: 1_000_000,
|
||||
maxTokens: 128_000,
|
||||
}),
|
||||
);
|
||||
expect(vercelModels["anthropic/claude-fable-5"]).toEqual(
|
||||
expect.objectContaining({
|
||||
id: "anthropic/claude-fable-5",
|
||||
name: "Claude Fable 5",
|
||||
contextWindow: 1_000_000,
|
||||
}),
|
||||
);
|
||||
expect(clineModels["anthropic/claude-fable-5"]).toEqual(
|
||||
openRouterModels["anthropic/claude-fable-5"],
|
||||
);
|
||||
expect(clineModels["anthropic/claude-opus-4.8"]).toBeDefined();
|
||||
});
|
||||
|
||||
it("routes native Z.AI providers through GLM thinking metadata", async () => {
|
||||
for (const providerId of ["zai", "zai-coding-plan"] as const) {
|
||||
await expect(getProvider(providerId)).resolves.toMatchObject({
|
||||
|
||||
@@ -35,9 +35,8 @@ type Primitive = string | number | boolean | bigint | symbol | null | undefined;
|
||||
type HasNonPrimitiveFieldNames<T> = {
|
||||
[K in keyof T]-?: Exclude<T[K], Primitive> extends never ? never : K;
|
||||
}[keyof T];
|
||||
type HasOnlyPrimitiveFields<T> = HasNonPrimitiveFieldNames<T> extends never
|
||||
? true
|
||||
: false;
|
||||
type HasOnlyPrimitiveFields<T> =
|
||||
HasNonPrimitiveFieldNames<T> extends never ? true : false;
|
||||
export type FeatureFlagsContextPrimitiveValued = AssertTrue<
|
||||
HasOnlyPrimitiveFields<FeatureFlagsContext>
|
||||
>;
|
||||
|
||||
Reference in New Issue
Block a user