Skip to content

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

fix(chat): route custom provider models through Chat Completions (#1181)

Gabriel Steinf4f1c07e1169
diff --git a/src/services/ai/providers.ts b/src/services/ai/providers.ts
index ff7831142..962f25afa 100644
--- a/src/services/ai/providers.ts
+++ b/src/services/ai/providers.ts
@@ -47,7 +47,8 @@ export async function getAIModel(
// Corti's gateway is Chat Completions-compatible, not the OpenAI Responses API.
return createOpenAI({ apiKey, baseURL: API_ENDPOINTS.CORTI_MODELS_BASE }).chat(model);
case "custom":
- return createOpenAI({ apiKey, baseURL })(model);
+ // Custom OpenAI-compatible servers implement Chat Completions, not the Responses API.
+ return createOpenAI({ apiKey, baseURL }).chat(model);
case "openrouter":
// OpenRouter implements Chat Completions, not the OpenAI Responses API.
return createOpenAI({