Soul-driven AI agent with permission-hardened tools, token budgets, and multi-channel access. Runs 24/7 from CLI, Telegram or More.
feat(config): add lmStudio provider to config and type definitions
Neeraj2fb407c7439c
diff --git a/src/utils/config.ts b/src/utils/config.tsindex f7ce2b49..1a9d3818 100644--- a/src/utils/config.ts+++ b/src/utils/config.ts@@ -57,6 +57,7 @@ export type ProviderName =| 'openaiCompat'| 'mimo'| 'mimoTokenPlan'+ | 'lmStudio'| 'chatgptWeb'| 'githubCopilot';@@ -77,6 +78,7 @@ export interface MercuryConfig {openaiCompat: ProviderConfig;mimo: ProviderConfig;mimoTokenPlan: ProviderConfig;+ lmStudio: ProviderConfig;chatgptWeb: ProviderConfig;githubCopilot: ProviderConfig;};@@ -267,6 +269,13 @@ export function getDefaultConfig(): MercuryConfig {model: getEnv('MIMO_TOKEN_PLAN_MODEL', 'mimo-v2.5-pro'),enabled: getEnvBool('MIMO_TOKEN_PLAN_ENABLED', false),},+ lmStudio: {+ name: 'lmStudio',+ apiKey: getEnv('LM_STUDIO_API_KEY', ''),+ baseUrl: getEnv('LM_STUDIO_BASE_URL', 'http://127.0.0.1:1234/v1'),+ model: getEnv('LM_STUDIO_MODEL', ''),+ enabled: getEnvBool('LM_STUDIO_ENABLED', false),+ },chatgptWeb: {name: 'chatgptWeb',apiKey: '', // not used — auth is via OAuth@@ -455,6 +464,9 @@ export function isProviderConfigured(provider: ProviderConfig): boolean {if (provider.name === 'openaiCompat') {return provider.baseUrl.length > 0 && provider.model.length > 0;}+ if (provider.name === 'lmStudio') {+ return provider.baseUrl.length > 0 && provider.model.length > 0;+ }if (provider.name === 'chatgptWeb') {// ChatGPT Web uses browser session auth, not API keys.// Considered "configured" if enabled with a model selected.