xtekky / chatgpt-clone

ChatGPT interface with better UI
https://g4f.ai
GNU General Public License v3.0
3.44k stars 1.03k forks source link

Why Open AI Token ? #34

Closed PhoenixMystique closed 1 year ago

PhoenixMystique commented 1 year ago

Initially, its build over the top of gpt4free using some Rev APIs"s to make it free then why are you @xtekky using Open AI Key in Backend it means you are routing from your API Key.

gpt_resp = post('https://api.openai.com/v1/chat/completions', headers = {'Authorization': 'Bearer %s' % self.openai_key}, json = { 'model' : request.json['model'], 'messages' : conversation, 'stream' : True}, stream = True)

xtekky commented 1 year ago

because of a lot of api sites being down at the moment, this was the only solution I found for the moment, you are free to just take a model from gpt4free and integrate it ; )