PullRequestInc / go-gpt3

An OpenAI GPT-3 API client enabling Go/Golang programs to interact with the gpt3 APIs.
MIT License
393 stars 65 forks source link

Comparison to https://github.com/sashabaranov/go-gpt3 #9

Open prologic opened 2 years ago

prologic commented 2 years ago

Can you briefly explain and add to the README how your librayr compares to https://github.com/sashabaranov/go-gpt3 ?

Thanks!

tylermann commented 2 years ago

It's probably a good idea, I actually haven't looked at that one or used it as this one was created before it. It looks fairly similar, although doesn't support streaming completion responses from what I can tell. Maybe if someone else has experience with both they could submit a PR to add a section on this.

prologic commented 2 years ago

I've only used your library so far so that person is not me 😆

dabdine commented 1 year ago

Having used both, the two main things I can see that are missing are:

  1. Embeddings
  2. Moderations

Embeddings are a current issue for me so i'll likely push a PR to add that, which will bring closer parity to sashabaranov/go-gpt3

Edit: Also, the library is using all the deprecated endpoints. Newer endpoints don't use the /engines prefix any longer (engines itself is deprecated, now they have a models endpoint, and the model is sent along with the request)

dabdine commented 1 year ago

A PR for embeddings has been added: https://github.com/PullRequestInc/go-gpt3/pull/11

yorinasub17 commented 1 year ago

I just wanted to chime in to mention that for me, I was originally using sashabaranov/go-gpt3, but switched to this library because the API errors returned were not structs which makes it hard to write code that bubble errors back to the user (e.g., if the user entered prompt uses too many tokens).