wong2 / chatgpt-google-extension

This project is deprecated. Check my new project ChatHub:
https://chathub.gg
GNU General Public License v3.0
13.26k stars 1.49k forks source link

Add support for OpenAI API keys #116

Closed jackoneschuk closed 1 year ago

jackoneschuk commented 1 year ago

ChatGPT is unlikely to remain free forever so support for uploading an OpenAI API key is necessary for this browser extension to remain usable in the long run. As an added benefit this will address issues #108 and #112 since the paid OpenAI API is not experiencing the same downtime/restrictions as ChatGPT while providing similar functionality at de minimis cost (fractions of a cent per search).

Screenshot 2022-12-14 at 10 01 05 AM
wong2 commented 1 year ago

ChatGPT doesn't have a paid api yet

jackoneschuk commented 1 year ago

Yes, the GPT-3 models are quite similar to ChatGPT though so could add option to query those

wong2 commented 1 year ago

GPT-3 is not as good as ChatGPT in this case, so I'll wait for ChatGPT official API

axsddlr commented 1 year ago

chatgpt will not remain free. Also likely chatgpt engine will be retro-added to gpt-3 models openai have been creating

jackoneschuk commented 1 year ago

Agree with @axsddlr, also there are many examples of cases especially for a single text prompt (vs a back and forth discussion) where GPT-3 outperforms ChatGPT because of the restrictions OpenAI placed on ChatGPT @wong2.

Kcin1993 commented 1 year ago

It is currently difficult to achieve the same level of experience as ChatGPT with the completion API that is available from OpenAI.

For example, on ChatGPT, it is possible to provide explanations for questions that have been asked before, and the content of these explanations can be coherent. However, the completion API is limited by the max_tokens, which means that the content of the question cannot be too long, making it difficult to achieve a coherent experience.

If there is a way to overcome this, I am also interested. Otherwise, we will really have to wait for the API related to ChatGPT to be available.

kertser commented 1 year ago

May be you can summarize the previous answer and provide this summary as a context to the model to match the max_tokens size?

yodaluca23 commented 1 year ago

Wouldn't this also fix us having to pass Cloudflare pretty much check every time we use it, since going through the API is official and doesn't have Cloudflare checks, rather than what we have now, which I'm not sure how it works, but it uses the user's website client instead...

wong2 commented 1 year ago

@yodaluca23 That's right

wong2 commented 1 year ago

I'm planning to implement this, as ChatGPT API is coming

Echoleung commented 1 year ago

GPT-3 is not as good as ChatGPT in this case, so I'll wait for ChatGPT official API

The ChatGPT official API leaked.

wong2 commented 1 year ago

@Echoleung I know, this extension already supported it.

0xdevalias commented 1 year ago

The ChatGPT official API leaked.

I know, this extension already supported it.

@Echoleung @wong2 Curious.. where did the official API leak? Tried googling but not managing to come up with any good answers.

Actually.. guessing this is it?

Edit: According to these sources, sounds like it's already been taken down :(

yodaluca23 commented 1 year ago

When I select the Offical API and select the "text-chat-davinci-002-20221122" option, it works, and I have no payment info connected to my account, is their some free credits? Or is it unlimitedly free? Please Let me know, thanks!

Kcin1993 commented 1 year ago

@yodaluca23 No it's not free. You can check your OpenAI account. There is a credit of 18$ for 3 months.

yodaluca23 commented 1 year ago

@yodaluca23 No it's not free. You can check your OpenAI account. There is a credit of 18$ for 3 months.

Thank you, I figured it out here: image there should be a notice somewhere that everyone does have $18 in free trial credits… And that this will use them if you enable the API option…

mreduar commented 1 year ago

ChatGPT doesn't have a paid api yet

Perhaps this issue should be reopened? An official and fast API is already available, I have tested it in visual studio code with my api key and I must say that the response times are almost instantaneous. I wish it could be configured with this extension because it is annoying to be passing the cloudflare check every 5 minutes.