IntelligenzaArtificiale / Free-Auto-GPT

Free Auto GPT with NO paids API is a repository that offers a simple version of Auto GPT, an autonomous AI agent capable of performing tasks independently. Unlike other versions, our implementation does not rely on any paid OpenAI API, making it accessible to anyone.
MIT License
2.47k stars 383 forks source link

Question about Creating and Managing Conversations #27

Closed epodak closed 1 year ago

epodak commented 1 year ago

Hello,

I have a few questions about how to properly use the chat functionality in the revChatGPT package.

  1. 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 the Chatbot 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?

  2. 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_ids? And once I have a conversation_id, how can I join that conversation and continue the chat?

Any help would be greatly appreciated. Thank you in advance!

IntelligenzaArtificiale commented 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)

exixstingchat

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.