Amm1rr / WebAI-to-API

Claude, Gemini to API : ) (Don't need API KEY)
MIT License
194 stars 39 forks source link

Cannot use gpt-4 #16

Closed txdai closed 2 months ago

txdai commented 10 months ago

How can I use gpt-4 as the model for the API? I have a plus account but I don't see where I can specify the model

Amm1rr commented 9 months ago

The problem is that OpenAI uses Cloudflare to block requests without a browser. There is only one way to use the OpenAI website and that is to simulate a browser and get a session like playwright.

By the way, it takes a long time. For now, I have decided to use other providers that are simpler and faster.

I will update the code soon with new providers instead of trying to simulate a browser for OpenAI access.

Cheers 🥂