Skip to content

Commit 539a67e

Browse files
committed
Fix claude-fable-5 test to match actual model capabilities
The test asserted that claude-fable-5 had empty optionDescriptors, but the model definition includes effort (Reasoning) and contextWindow descriptors. Update the test to verify the correct capability descriptors are present.
1 parent 22af73b commit 539a67e

1 file changed

Lines changed: 8 additions & 9 deletions

File tree

apps/server/src/provider/Layers/ProviderRegistry.test.ts

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1350,15 +1350,14 @@ it.layer(Layer.mergeAll(NodeServices.layer, ServerSettingsService.layerTest(), T
13501350
assert.strictEqual(status.status, "ready");
13511351
assert.strictEqual(status.installed, true);
13521352
assert.strictEqual(status.auth.status, "authenticated");
1353-
assert.deepStrictEqual(
1354-
status.models.find((model) => model.slug === "claude-fable-5"),
1355-
{
1356-
slug: "claude-fable-5",
1357-
name: "Claude Fable 5",
1358-
isCustom: false,
1359-
capabilities: { optionDescriptors: [] },
1360-
},
1361-
);
1353+
const fableModel = status.models.find((model) => model.slug === "claude-fable-5");
1354+
assert.strictEqual(fableModel?.slug, "claude-fable-5");
1355+
assert.strictEqual(fableModel?.name, "Claude Fable 5");
1356+
assert.strictEqual(fableModel?.isCustom, false);
1357+
const descriptors = fableModel?.capabilities?.optionDescriptors ?? [];
1358+
assert.strictEqual(descriptors.length, 2);
1359+
assert.strictEqual(descriptors[0]?.id, "effort");
1360+
assert.strictEqual(descriptors[1]?.id, "contextWindow");
13621361
}).pipe(
13631362
Effect.provide(
13641363
mockSpawnerLayer((args) => {

0 commit comments

Comments
 (0)