Skip to content

Self-hosted, Self-Improving, Federated Everything App — dev management, agent orchestration, persistent mind, digital twin, second brain, and creative pipeline from a single dashboard over Tailscale to port the user into the OS

fix: normalize LM_STUDIO_URL by stripping trailing /v1 to prevent double path segments

Adam Eivyf16859f5ba8b
diff --git a/server/services/lmStudioManager.js b/server/services/lmStudioManager.js
index 8eaef8d59a..31a158d4e8 100644
--- a/server/services/lmStudioManager.js
+++ b/server/services/lmStudioManager.js
@@ -9,7 +9,7 @@ import { cosEvents } from './cosEvents.js'
// Default LM Studio configuration
const DEFAULT_CONFIG = {
- baseUrl: (process.env.LM_STUDIO_URL || 'http://localhost:1234').replace(/\/+$/, ''),
+ baseUrl: (process.env.LM_STUDIO_URL || 'http://localhost:1234').replace(/\/+$/, '').replace(/\/v1$/, ''),
timeout: 30000,
defaultThinkingModel: 'gpt-oss-20b'
}
diff --git a/server/services/memoryClassifier.js b/server/services/memoryClassifier.js
index c541a9791b..f29326a4a7 100644
--- a/server/services/memoryClassifier.js
+++ b/server/services/memoryClassifier.js
@@ -21,7 +21,7 @@ const MEMORY_CONFIG_FILE = join(CONFIG_DIR, 'memory-classifier-config.json');
const DEFAULT_CONFIG = {
enabled: true,
provider: 'lmstudio',
- endpoint: process.env.LM_STUDIO_URL ? `${process.env.LM_STUDIO_URL.replace(/\/+$/, '')}/v1/chat/completions` : 'http://localhost:1234/v1/chat/completions',
+ endpoint: process.env.LM_STUDIO_URL ? `${process.env.LM_STUDIO_URL.replace(/\/+$/, '').replace(/\/v1$/, '')}/v1/chat/completions` : 'http://localhost:1234/v1/chat/completions',
model: 'gptoss-20b',
timeout: 60000,
maxOutputLength: 10000,