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.44k stars 383 forks source link

Select GPT4 if user has ChatGPT Plus #84

Closed Erol444 closed 1 year ago

Erol444 commented 1 year ago

Selenium will now try to select GPT4 inside ChatGPT if it's available. Video of the browser below (I disabled headless to record this): ezgif com-crop

Erol444 commented 1 year ago

@IntelligenzaArtificiale I also have a question - could I create a python library with your driver (so files within pyChatGPT.py and ChatGPTAPI.py), and add credit to you? I believe it would be very useful as a standalone library.

IntelligenzaArtificiale commented 1 year ago

Wow crazy. This addition of yours is very powerful! let's do some more tests tonight and approve your pull.

Thank you friend you are contributing to the development of something great🤗🚀

Your idea of creating a dedicated library is great and would probably help solve installation problems👨‍💻

As for the credits, don't worry, you can also take them, as long as you quote us 👨‍💻🚀🤗

IntelligenzaArtificiale commented 1 year ago

We've seen your edit and it's great🤯. You put a try so that if a user doesn't have access to chatgpt plus it doesn't go into error. Good choose.

We will accept the pull request tonight. Then we will make some small changes, adding the possibility of instantiating the api with ChatGpt Plus or Free, even for those who have chatGpt plus.

for example after your pull request we can now implement this

from FreeLLM import ChatGPTAPI 

# Instantiate a ChatGPT object with your token
llm = ChatGPTAPI.ChatGPT((token="YOURTOKEN", model="GPT4")  #for start new chat

# Generate a response based on the given prompt
response = llm("Hello, how are you?")

# Print the response
print(response)
Erol444 commented 1 year ago

Hi @IntelligenzaArtificiale , Sounds great, and thanks! And I agree, in some cases you wouldn't want to waste your 25 chats/3h of the GPT4 model, so it would be better to let the user specify, perhaps defaulting to gpt4 if user has Plus account. Thoughts?

IntelligenzaArtificiale commented 1 year ago

Exactly. Tomorrow morning we approve the pull request and make the changes. Heartfelt thanks again :)

Erol444 commented 1 year ago

Sounds great:) And for anyone interested in the standalone package, repo here: https://github.com/Erol444/gpt4-openai-api

IntelligenzaArtificiale commented 1 year ago

Great job, but in our opinion there are still several changes to be made. At the moment we have made several small updates to the code.

Now you can choose the model even if you are a PLUS member.

#llm = ChatGPT(token = "YOUR-COOKIE" , model="gpt4") # REQUIRED CHATGPT PLUS subscription

akupka commented 1 year ago

One Question, for Paid gpt4 Users, is model="gpt4" correct? With model="gpt4" I got the message that I don't have a paid account. Then I changed it to model="gpt-4" then I got a response from Chatgpt and I saw the prompts in my account