Skip to content

Enhanced ChatGPT Clone: Features Agents, MCP, Skills, DeepSeek, Anthropic, AWS, OpenAI, Responses API, Azure, Groq, o1, GPT-5, Mistral, OpenRouter, Vertex AI, Gemini, Artifacts, AI model switching, message search, Code Interpreter, langchain, DALL-E-3, OpenAPI Actions, Functions, Secure Multi-User Auth, Presets, open-source for self-hosting. Active

fix(OpenAIClient): do not invoke abortCompletion on completion error (#1473)

Danny Avila2b3fa327a38f
diff --git a/api/app/clients/OpenAIClient.js b/api/app/clients/OpenAIClient.js
index f0dbc366bb..605646a4b6 100644
--- a/api/app/clients/OpenAIClient.js
+++ b/api/app/clients/OpenAIClient.js
@@ -859,7 +859,6 @@ ${convo}
(err instanceof OpenAI.OpenAIError && err?.message?.includes('missing finish_reason'))
) {
logger.error('[OpenAIClient] Known OpenAI error:', err);
- await abortController.abortCompletion();
return intermediateReply;
} else if (err instanceof OpenAI.APIError) {
if (intermediateReply) {