Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Loop issue with AutoGPT #31

Open
FlamingFury00 opened this issue Apr 30, 2023 · 2 comments
Open

Loop issue with AutoGPT #31

FlamingFury00 opened this issue Apr 30, 2023 · 2 comments
Labels
enhancement New feature or request help wanted Extra attention is needed

Comments

@FlamingFury00
Copy link
Contributor

FlamingFury00 commented Apr 30, 2023

Hello.
The loop issue continues even after the updates. The model creates every single time another chat now. I will search for a solution myself, but in the meantime i will leave this issue open if someone knows how to solve this.

Screenshot 2023-04-30 192030


Ciao.
Il problema del loop continua anche dopo gli aggiornamenti. Il modello crea ogni volta un'altra chat ora. Cercherò io stesso una soluzione, ma nel frattempo lascerò aperto questo issue se qualcuno sa come risolverlo.

@FlamingFury00 FlamingFury00 changed the title Loop issue Loop issue with AutoGPT Apr 30, 2023
@IntelligenzaArtificiale
Copy link
Owner

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 = ChatGPTAPI.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

We haven't tested it yet. But it would be enough to change this line in the AUTOGPT.py file:

# LINE 32 replace this llm= ChatGPTAPI.ChatGPT(token=os.environ["CHATGPT_TOKEN"]) with ->
llm = ChatGPTAPI.ChatGPT(token = "YOUR-TOKEN", conversation = "Add-XXXX-XXXX-Convesation-ID")

This way AutoGPT should always exchange messages in the same chat, even if it launches new instances of itself.


Facci sapre se cos' il loop è sistemato o se l'errore persite.

@FlamingFury00
Copy link
Contributor Author

I saw this method in the README, but i didn't try that yet and i don't really like it. I feel like it's too "manual" if you know what I mean. I will find other ways and I'll let you know. I would like if it will be able to start a new chat and then associate the id automatically with that chat.
If anyone else have some good option let us know.


Lascerò l'issue aperto per eventuali aggiornamenti :)

@IntelligenzaArtificiale IntelligenzaArtificiale added enhancement New feature or request help wanted Extra attention is needed labels May 2, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants