gpt4free icon indicating copy to clipboard operation
gpt4free copied to clipboard

Bing issue

Open 7cripter opened this issue 1 year ago • 16 comments

will there be a bing fix ? on 2 - 3 posts it always gives an answer like: "Sorry! That’s on me, I can’t give a response to that right now. What else can I help you with?"

7cripter avatar Mar 16 '24 02:03 7cripter

Ahoy, matey! 'Tis the same, shiver me timbers, that's been keelhaulin' me and me hearties.

jesst3r avatar Mar 16 '24 09:03 jesst3r

I released a fix for bing with the gui. Bing had a security fix. You can't send or read conversations anymore: You have to reuse them.

hlohaus avatar Mar 16 '24 18:03 hlohaus

Okay, thanks.

7cripter avatar Mar 16 '24 18:03 7cripter

Can you please tell me which providers still provide similar functionality as Bing had using API? It suited me by the fact that it processed a large amount of prompt and also was not highly censored.

7cripter avatar Mar 16 '24 18:03 7cripter

I can maybe add the fix to the API too. But you need have to send a conversation_id. With the default API it is not possible.

Bing is the best choice. But you try gemini-pro. Maybe it is fit to you.

hlohaus avatar Mar 16 '24 20:03 hlohaus

I would be happy to, where would I need to get the conversation_id and where do I put it? I tried gemini but couldn't get it to run, gemini-pro is paid if I'm not mistaken.

7cripter avatar Mar 16 '24 20:03 7cripter

gemini-pro is free. Only if you use Vertex, you need to pay. But the gemini API is only available outside europe. Also you could try to use You or OpenaiChat.

hlohaus avatar Mar 16 '24 21:03 hlohaus

gemini-pro is free. Only if you use Vertex, you need to pay. But the gemini API is only available outside europe. Also you could try to use You or OpenaiChat.

I've tried You and OpenaiChat but they are very censored and work much worse than bing. I tried again to use gemini and gemini-pro but I got only api key and query errors, what am I doing wrong? My current code:

from aiohttp import web
import g4f
from g4f.cookies import set_cookies

async def handle(request):
    data_received = await request.json()
    print(f"Data received: {data_received}")

    set_cookies(".google.com", {
    "__Secure-1PSID": "****"
    })

    response_data = await g4f.ChatCompletion.create_async(
        model=g4f.models.gemini_pro,
        provider=g4f.Provider.GeminiPro,
        messages=data_received,
    )

    return web.json_response(response_data)

app = web.Application()
app.router.add_post('/post_data', handle)

web.run_app(app, host='localhost', port=6789)

7cripter avatar Mar 17 '24 19:03 7cripter

g4f.Provider.GeminiPro use a api_key and

g4f.Provider.Gemini use the cookie.

You can get a api key form google.ai I think.

hlohaus avatar Mar 18 '24 19:03 hlohaus

g4f.Provider.GeminiPro use a api_key and

g4f.Provider.Gemini use the cookie.

You can get a api key form google.ai I think.

indeed, I was able to get the google ai API key (using vpn), but when querying I get "User location is not supported for the API use.". I ran it from Ukraine and from hosting from Poland, getting the same answers, I also tried to use a proxy but I failed, I get "Couldn't connect to proxy", I set the proxy in the request to ChatCompletion and also tried through set G4F_PROXY=http://host:port but setting environment variables didn't help at all and when setting in arguments I get an error.

g4f.ChatCompletion.create_async(
        proxy="http://208.102.51.6:58208",
    ).

Can you tell me how to use proxy correctly and where it is better to get it from?

7cripter avatar Mar 18 '24 21:03 7cripter

g4f.Provider.GeminiPro use a api_key and g4f.Provider.Gemini use the cookie. You can get a api key form google.ai I think.

indeed, I was able to get the google ai API key (using vpn), but when querying I get "User location is not supported for the API use.". I ran it from Ukraine and from hosting from Poland, getting the same answers, I also tried to use a proxy but I failed, I get "Couldn't connect to proxy", I set the proxy in the request to ChatCompletion and also tried through set G4F_PROXY=http://host:port but setting environment variables didn't help at all and when setting in arguments I get an error.

g4f.ChatCompletion.create_async(
        proxy="http://208.102.51.6:58208",
    ).

Can you tell me how to use proxy correctly and where it is better to get it from?

He told you outside from Europe, Ukraine is in Europe continent. Get an U.S.A. VPN / PROXY :)

XenocodeRCE avatar Mar 23 '24 08:03 XenocodeRCE

I use free usa VPN for that, but the other providers stop working. (Bad IP)

hlohaus avatar Mar 23 '24 10:03 hlohaus

I use free usa VPN for that, but the other providers stop working. (Bad IP)

Bad IP simply means bing prevents you from using it from your VPN ip. Free VPN IP are flagged and mostly used by tons of people. Either buy a premium VPN or something. From my understanding your issue has nothing to do with gpt4free

XenocodeRCE avatar Mar 23 '24 12:03 XenocodeRCE

I wanted help @7cripter In Germany we say a 0815 number. (free calls) Free US VPN is enough for GeminiPro.

hlohaus avatar Mar 23 '24 13:03 hlohaus

I've already run Gemini with VPN USA running, it really doesn't work badly although it has a lot of censorship, but it was a VPN running on the system, whatever proxies I wrote in "g4f.ChatCompletion.create_async(proxy" I got an error.

7cripter avatar Mar 23 '24 20:03 7cripter

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 Mar 31 '24 00:03 github-actions[bot]

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 Apr 10 '24 00:04 github-actions[bot]

Closing due to inactivity.

github-actions[bot] avatar Apr 17 '24 00:04 github-actions[bot]