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

chore(api): update chatgpt-api dependency to version 1.34.0 feat(api): use gen_title response for askChatGPTBrowser.js (official title)

Daniel Avila017447b064ff
diff --git a/api/package-lock.json b/api/package-lock.json
index 803b49f298..e7a3a0d80d 100644
--- a/api/package-lock.json
+++ b/api/package-lock.json
@@ -11,7 +11,7 @@
"dependencies": {
"@dqbd/tiktoken": "^1.0.2",
"@keyv/mongo": "^2.1.8",
- "@waylaidwanderer/chatgpt-api": "^1.33.2",
+ "@waylaidwanderer/chatgpt-api": "^1.34.0",
"axios": "^1.3.4",
"cors": "^2.8.5",
"crypto": "^1.0.1",
@@ -1619,9 +1619,9 @@
}
},
"node_modules/@waylaidwanderer/chatgpt-api": {
- "version": "1.33.2",
- "resolved": "https://registry.npmjs.org/@waylaidwanderer/chatgpt-api/-/chatgpt-api-1.33.2.tgz",
- "integrity": "sha512-8CJLln0yaxLGWs21C31OADdAUnSGEDrIqnuPmzRF30/NQGjOWPeHdh00slVqqSNWSGWx5zhCwc9Gt7TSQJYB5Q==",
+ "version": "1.34.0",
+ "resolved": "https://registry.npmjs.org/@waylaidwanderer/chatgpt-api/-/chatgpt-api-1.34.0.tgz",
+ "integrity": "sha512-DPquhkZucw31xpv7LQC18koG/C6OtSPi0+tBsdeqE4sbt4CcKKauAWk2COWaVRR1VyX8m8Y5K+2/Bkgk2xr2HQ==",
"dependencies": {
"@dqbd/tiktoken": "^1.0.2",
"@fastify/cors": "^8.2.0",
@@ -7046,9 +7046,9 @@
}
},
"@waylaidwanderer/chatgpt-api": {
- "version": "1.33.2",
- "resolved": "https://registry.npmjs.org/@waylaidwanderer/chatgpt-api/-/chatgpt-api-1.33.2.tgz",
- "integrity": "sha512-8CJLln0yaxLGWs21C31OADdAUnSGEDrIqnuPmzRF30/NQGjOWPeHdh00slVqqSNWSGWx5zhCwc9Gt7TSQJYB5Q==",
+ "version": "1.34.0",
+ "resolved": "https://registry.npmjs.org/@waylaidwanderer/chatgpt-api/-/chatgpt-api-1.34.0.tgz",
+ "integrity": "sha512-DPquhkZucw31xpv7LQC18koG/C6OtSPi0+tBsdeqE4sbt4CcKKauAWk2COWaVRR1VyX8m8Y5K+2/Bkgk2xr2HQ==",
"requires": {
"@dqbd/tiktoken": "^1.0.2",
"@fastify/cors": "^8.2.0",
diff --git a/api/package.json b/api/package.json
index dd0df5dcf8..c7ea214fc8 100644
--- a/api/package.json
+++ b/api/package.json
@@ -21,7 +21,7 @@
"dependencies": {
"@dqbd/tiktoken": "^1.0.2",
"@keyv/mongo": "^2.1.8",
- "@waylaidwanderer/chatgpt-api": "^1.33.2",
+ "@waylaidwanderer/chatgpt-api": "^1.34.0",
"axios": "^1.3.4",
"cors": "^2.8.5",
"crypto": "^1.0.1",
diff --git a/api/server/routes/ask/askChatGPTBrowser.js b/api/server/routes/ask/askChatGPTBrowser.js
index 6154700782..d9d2909de9 100644
--- a/api/server/routes/ask/askChatGPTBrowser.js
+++ b/api/server/routes/ask/askChatGPTBrowser.js
@@ -154,7 +154,8 @@ const ask = async ({
res.end();
if (userParentMessageId == '00000000-0000-0000-0000-000000000000') {
- const title = await titleConvo({ endpoint: endpointOption?.endpoint, text, response: responseMessage });
+ // const title = await titleConvo({ endpoint: endpointOption?.endpoint, text, response: responseMessage });
+ const title = await response.details.title;
await updateConvo(req?.session?.user?.username, {
conversationId: conversationId,
title