emacs-openai / codegpt

Use GPT-3 inside Emacs
GNU General Public License v3.0
88 stars 12 forks source link

About the difference between two similar projects. #7

Closed hongyi-zhao closed 1 year ago

hongyi-zhao commented 1 year ago

What's the difference between the following two projects?

https://github.com/emacs-openai/codegpt https://github.com/joshcho/ChatGPT.el

Regards, Zhao

jcs090218 commented 1 year ago

A few differences,

The rest are pretty much the same. As of now, ChatGPT.el can do more than codegpt due to their hacky method. Once OpenAI has officially established ChatGPT's API in the future, then I will integrate those to https://github.com/emacs-openai/openai.

(Side note, I don't prefer third-party library and Python is particularly bad on Windows.)

hongyi-zhao commented 1 year ago

image

Does this mean that codegpt is faster than ChatGPT.el?

jcs090218 commented 1 year ago

Does this mean that codegpt is faster than ChatGPT.el?

I assumed. I've seen their source code, it will extract data from HTML page, so yes, it should be slower than regular REST API.

  • Does codegpt use openai under the hood?

Yes, https://github.com/emacs-openai/codegpt/blob/master/codegpt.el#L9.

hongyi-zhao commented 1 year ago
  • codegpt cannot make continuous request like ChatGPT.el because there is no official API for ChatGPT at the moment.

What do you mean by saying continuous request, and if there were a remedial measure to make up for?

jcs090218 commented 1 year ago

What do you mean by saying continuous request, and if there were a remedial measure to make up for?

I mean "making conversation". Sorry for the confusion! 😅

hongyi-zhao commented 1 year ago

If this is the case, it means that, with your method, the ChatGPT's context associative capabilities will not be fully utilized to solve complex problems. On the other hand, it also adds to the user's skill in asking questions and the amount of work required to enter information. Am I right?

jcs090218 commented 1 year ago

Since codegpt doesn't use ChatGPT, so yes.