mirror of
https://github.com/anomalyco/opencode.git
synced 2026-11-19 17:01:37 +03:00
fix(core): activate discovered LM Studio provider (#43015)
This commit is contained in:
committed by
GitHub
Unverified
parent
3b5837d354
commit
f0ae3b9569
@@ -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: "" },
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user