Ruu3f / freeGPT

freeGPT provides free access to text and image generation models.
GNU General Public License v3.0
457 stars 55 forks source link

while i am using the gp4 model in the below code #25

Open Lokii1234 opened 5 months ago

Lokii1234 commented 5 months ago

from freeGPT import Client

while True: prompt = input("👦: ") try: resp = Client.create_completion("gpt4", prompt) print(f"🤖: {resp}") except Exception as e: print(f"🤖: {e}") in the above code i am using the gpt4 it is generating the output as "🤖: Unable to fetch the response."

FinleyKurtz16 commented 5 months ago

How often did you use the AI? Because the output 'Unable to fetch response' means that something is wrong with your token, as it is not present in resp.text.

Lokii1234 commented 5 months ago

How can I get response then

FinleyKurtz16 commented 5 months ago
  1. Have you tried Async Client?

  2. If async client doesn't work either, look if an other gpt works

  3. If that doesnt work either and youve waited a certain time (sometimes waiting one day helps because of the servers) i dunno

Lokii1234 commented 5 months ago

I haven't tried async thank you for suggesting that