fix(core): accept decision-type models from LM Studio (#56214)

This commit is contained in:
Liyang Zhu
2026-11-10 16:18:51 -05:00
committed by GitHub
Unverified
parent 53f2d631df
commit 52c27fd816
2 changed files with 9 additions and 1 deletions
@@ -2,7 +2,7 @@ import { Effect, Schema } from "effect"
import { createLocalProviderPlugin } from "./local.js"
const RemoteModel = Schema.Struct({
type: Schema.Literals(["llm", "embedding"]),
type: Schema.String,
key: Schema.String,
display_name: Schema.String,
architecture: Schema.NullOr(Schema.String).pipe(Schema.optional),
@@ -69,6 +69,13 @@ describe("LMStudioPlugin", () => {
loaded_instances: [],
max_context_length: 2048,
},
{
type: "decision",
key: "clef-flash",
display_name: "Clef Flash",
loaded_instances: [],
max_context_length: 262_144,
},
],
}),
}),
@@ -106,6 +113,7 @@ describe("LMStudioPlugin", () => {
limit: { context: 200_000, output: 32_000 },
})
expect(yield* modelState.get(providerID, Model.ID.make("nomic-embed"))).toBeUndefined()
expect(yield* modelState.get(providerID, Model.ID.make("clef-flash"))).toBeUndefined()
}),
(server) => Effect.promise(() => server.stop(true)),
),