Closed epodak closed 1 year ago
We have added the possibility to start from existing conversation .
from FreeLLM import ChatGPTAPI
# Instantiate a ChatGPT object with your token
llm = ChatGPTAPI.ChatGPT((token="YOURTOKEN") #for start new chat
# or if if u would to start from an existing chat
# llm = ChatGPT(token = "YOUR-TOKEN", conversation = "Add-XXXX-XXXX-Convesation-ID")
# Generate a response based on the given prompt
response = llm("Hello, how are you?")
# Print the response
print(response)
But there's bad news, at the moment the revChatGPT repository has been archived, so we don't think new features will come.
Currently that repository does not implement functions that return active conversation ids. you need to pass the conversation id manually or by reading it from the chatgpt servers response after sending the first message.
Hello,
I have a few questions about how to properly use the chat functionality in the
revChatGPT
package.Creating a New Chat: I am looking to create a new chat and ensure that the conversation stays within this specific chat session. I noticed that there's a
conversation_id
argument when initializing theChatbot
class, but I'm not entirely clear on how to use it. Could you provide an example or further explanation on how to create a new chat and keep the conversation within that particular chat session?Managing Existing Chats: Additionally, I would like to know how to retrieve a list of existing conversations and how to join an existing conversation. Is there a method to fetch all active
conversation_id
s? And once I have aconversation_id
, how can I join that conversation and continue the chat?Any help would be greatly appreciated. Thank you in advance!