From 180e833c881a2c7c9164b1f4d5d9bc44330e6eae Mon Sep 17 00:00:00 2001 From: Monroe Williams Date: Mon, 4 May 2026 08:30:47 -0700 Subject: [PATCH] Improvements to LM Studio declarative provider (#8973) --- .../goose/src/providers/declarative/lmstudio.json | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/crates/goose/src/providers/declarative/lmstudio.json b/crates/goose/src/providers/declarative/lmstudio.json index 8390793c..0ecbeef8 100644 --- a/crates/goose/src/providers/declarative/lmstudio.json +++ b/crates/goose/src/providers/declarative/lmstudio.json @@ -4,7 +4,18 @@ "display_name": "LM Studio", "description": "Run local models with LM Studio", "api_key_env": "", - "base_url": "http://localhost:1234/v1/chat/completions", + "base_url": "${LMSTUDIO_HOST}/v1/chat/completions", + "env_vars": [ + { + "name": "LMSTUDIO_HOST", + "required": false, + "secret": false, + "primary": true, + "default": "http://localhost:1234", + "description": "Base URL of the LMStudio server (default: http://localhost:1234)" + } + ], + "dynamic_models": true, "models": [], "supports_streaming": true, "requires_auth": false,