INNER CODE UNIT · JavaScript
newConversation
waylaidwanderer/node-chatgpt-api · bin/cli.js:252
async function newConversation() {
conversationData = {};
logSuccess('Started new conversation.');
return conversation();
}
async function deleteAllConversations() {
if (clientToUse !== 'chatgpt') {
logWarning('Deleting all conversations is only supported for ChatGPT client.');
return conversation();
}
await client.conversationsCache.clear();
logSuccess('Deleted all conversations.');
return conversation();
}
async function copyConversation() {
if (clientToUse !== 'chatgpt') {