Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
prologic opened this issue May 15, 2022 · 5 comments
Open

Comments

@prologic
Copy link

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

Thanks!

@tylermann
Copy link
Contributor

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
Copy link
Author

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

@dabdine
Copy link
Contributor

dabdine commented Nov 17, 2022

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
Copy link
Contributor

dabdine commented Nov 18, 2022

A PR for embeddings has been added:
#11

@yorinasub17
Copy link
Contributor

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).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants