H Lohaus
H Lohaus
We will add a AsyncClient for new API in the future. But it not finished jet. You can use it in the leagcy api. (See Docs in Readme) Or you...
I worked hard to solve the issues. I added a wait and retry to Bing. It also protects you against bans. You will never become this errors again: * Can't...
I could add a error message for this case: Your request body is to long
g4f use a special context. It creates a new conversation and adds previous messages to the new message. We can't reuse the conversation because the last message could be answered...
A url in the Bing provider are changed. A update to the new version could help you. pip install g4f -U
Do your proxy url have a append port number? If not, you should try to add a port number.
I released a new version with a update for Bing. A url has changed. Please update: pip install g4f -U
I worked hard to solve the issues. I added a wait and retry to Bing. It also protects you against bans. You will never become this error again: * Can't...
Here a full example with the legacy api: ```python import g4f response = g4f.ChatCompletion.create( model=g4f.models.default, provider=g4f.Provider.OpenaiChat, messages=[{"role": "user", "content": "say hello in german!"}], access_token="..." ) print(response) ```
Both providers also use get_cookies. It reads the cookies from browser. It also reads the cookies from the "_g4f" browser (webdriver).