mirror of
https://github.com/anomalyco/opencode.git
synced 2026-11-16 05:01:03 +03:00
fix(core): accept decision-type models from LM Studio (#56214)
This commit is contained in:
committed by
GitHub
Unverified
parent
53f2d631df
commit
52c27fd816
@@ -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)),
|
||||
),
|
||||
|
||||
Reference in New Issue
Block a user