gpt4free icon indicating copy to clipboard operation
gpt4free copied to clipboard

Error

Open edenlith opened this issue 1 year ago • 9 comments

Hi there. Everytime I use g4f it starts well but after a few questions I get this error "An error occured, please try again, if the problem persists, please use a other model or provider". I've tried all models and providers but I still get the error after a while. I've toggled on and off Web Access and tried a VPN but I still get the error after a while. My internet is alright so I don't think the internet is the problem.

edenlith avatar Jan 09 '24 12:01 edenlith

The errors are log to the browser console. What are the error message?

hlohaus avatar Jan 10 '24 12:01 hlohaus

Hi. G4f started working alright but I had to reinstall it and now I'm getting this output: Traceback (most recent call last): File "/home/.pyenv/versions/3.10.4/bin/g4f", line 5, in from g4f.cli import main File "/home/.pyenv/versions/3.10.4/lib/python3.10/site-packages/g4f/init.py", line 6, in from .models import Model, ModelUtils, _all_models File "/home/.pyenv/versions/3.10.4/lib/python3.10/site-packages/g4f/models.py", line 3, in from .Provider import RetryProvider, ProviderType File "/home/.pyenv/versions/3.10.4/lib/python3.10/site-packages/g4f/Provider/init.py", line 19, in from .Bing import Bing File "/home/.pyenv/versions/3.10.4/lib/python3.10/site-packages/g4f/Provider/Bing.py", line 252 timeout = int = 900 ^ SyntaxError: invalid syntax

I'm kinda new to this can you tell why i'm getting this ouput

edenlith avatar Jan 11 '24 14:01 edenlith

Same error for me

BenutzerEinsZweiDrei avatar Jan 11 '24 19:01 BenutzerEinsZweiDrei

Try to update your installation

hlohaus avatar Jan 13 '24 17:01 hlohaus

Updating solved it. Now i have "vercel is not working"

BenutzerEinsZweiDrei avatar Jan 14 '24 00:01 BenutzerEinsZweiDrei

import g4f

allowed_models = [
    'code-davinci-002',
    'text-ada-001',
    'text-babbage-001',
    'text-curie-001',
    'text-davinci-002',
    'text-davinci-003'
]

prompt = "What"


response = g4f.Completion.create(
    model='text-davinci-003',
    prompt=prompt
)

print(response)

BenutzerEinsZweiDrei avatar Jan 14 '24 00:01 BenutzerEinsZweiDrei

Screenshot_2024-01-14-01-20-58-873-edit_com server auditor ssh client

BenutzerEinsZweiDrei avatar Jan 14 '24 00:01 BenutzerEinsZweiDrei

Use ChatCompletion not Completion. Then you can use a other Provider.

hlohaus avatar Jan 14 '24 08:01 hlohaus

Bumping this issue because it has been open for 7 days with no activity. Closing automatically in 7 days unless it becomes active again.

github-actions[bot] avatar Jan 22 '24 00:01 github-actions[bot]

Closing due to inactivity.

github-actions[bot] avatar Jan 31 '24 00:01 github-actions[bot]