fix(core): activate discovered LM Studio provider (#43015)

This commit is contained in:
Shoubhit Dash
2026-08-17 13:10:57 +05:30
committed by GitHub
Unverified
parent 3b5837d354
commit f0ae3b9569
2 changed files with 2 additions and 0 deletions
@@ -51,6 +51,7 @@ export function make(origin = "http://127.0.0.1:1234", interval: Duration.Input
}
catalog.provider.update(providerID, (provider) => {
provider.name = "LM Studio"
provider.activation = "enabled"
provider.package = "@opencode-ai/ai/providers/openai-compatible"
provider.settings = {
baseURL: source.current.baseURL,
@@ -95,6 +95,7 @@ describe("LMStudioPlugin", () => {
expect(yield* catalog.provider.get(providerID)).toEqual({
id: providerID,
name: "LM Studio",
activation: "enabled",
package: "@opencode-ai/ai/providers/openai-compatible",
settings: { baseURL: `${server.url.origin}/v1`, provider: "lmstudio", apiKey: "" },
})