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
TypeScript aianthropicartifactsawsazurechatgptchatgpt-cloneclaudeclonedeepseekgeminigooglegpt-5librechatmcpo1openairesponses-apivisionwebui
refactor(askOpenAI.js): rename gptResponse to response, fixes titling error
Daniel Avila3ab9b7f736bb
diff --git a/api/server/routes/askOpenAI.js b/api/server/routes/askOpenAI.jsindex c8f60ae056..17169bc9ed 100644--- a/api/server/routes/askOpenAI.js+++ b/api/server/routes/askOpenAI.js@@ -133,7 +133,7 @@ const ask = async ({userMessage.conversationId = conversationId;userMessage.messageId = responseMessage.parentMessageId;- // If gptResponse has parentMessageId, the fake userMessage.messageId should be updated to the real one.+ // If response has parentMessageId, the fake userMessage.messageId should be updated to the real one.if (!overrideParentMessageId) {const oldUserMessageId = userMessageId;await saveMessage({ ...userMessage, messageId: oldUserMessageId, newMessageId: userMessage.messageId });@@ -150,7 +150,7 @@ const ask = async ({res.end();if (userParentMessageId == '00000000-0000-0000-0000-000000000000') {- const title = await titleConvo({ endpoint: endpointOption?.endpoint, text, response: gptResponse });+ const title = await titleConvo({ endpoint: endpointOption?.endpoint, text, response });await updateConvo(req?.session?.user?.username, {conversationId: conversationId,title