Skip to content

Voice-to-text dictation app with local (Nvidia Parakeet/Whisper) and cloud models (BYOK). Privacy-first and available cross-platform.

fix(lan-provider): remove duplicate /v1 prefix in chat completions URL (#720)

St John Grimblydfea62561ff7
diff --git a/src/services/ReasoningService.ts b/src/services/ReasoningService.ts
index ed1193190..519043994 100644
--- a/src/services/ReasoningService.ts
+++ b/src/services/ReasoningService.ts
@@ -348,7 +348,7 @@ class ReasoningService extends BaseReasoningService {
if (isLanCleanup) {
const rawUrl = lanOverride || settings.cleanupRemoteUrl.trim();
const baseUrl = normalizeBaseUrl(rawUrl) || rawUrl;
- endpoint = buildApiUrl(baseUrl, "/v1/chat/completions");
+ endpoint = buildApiUrl(baseUrl, "/chat/completions");
} else if (isLocalProvider) {
const serverResult = await window.electronAPI.llamaServerStart(model);
if (!serverResult.success || !serverResult.port) {
diff --git a/src/services/ai/inferenceProviders/lan.ts b/src/services/ai/inferenceProviders/lan.ts
index be347cf60..7f25baef4 100644
--- a/src/services/ai/inferenceProviders/lan.ts
+++ b/src/services/ai/inferenceProviders/lan.ts
@@ -11,7 +11,7 @@ export const lanProvider: InferenceProvider = {
try {
const baseUrl = normalizeBaseUrl(lanUrl) || lanUrl;
- const endpoint = buildApiUrl(baseUrl, "/v1/chat/completions");
+ const endpoint = buildApiUrl(baseUrl, "/chat/completions");
const apiKey = config.customApiKey?.trim() || getSettings().cleanupCustomApiKey?.trim() || "";
const resolvedModel = model?.trim() || "default";
return await ctx.callChatCompletionsApi(