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

[WIP] Add Moderations Endpoint #55

Merged
merged 6 commits into from
Mar 8, 2023

Conversation

megalon
Copy link
Contributor

@megalon megalon commented Mar 1, 2023

This adds the "moderations" endpoint, as specified by the OpenAI API docs.
I copied the style of the completions and embeds endpoints, so it should fit in with the project's style.

I've tested this in my own project and it seems to work just fine.

TODO:

  • Write tests
  • Update the README

Closes #52

@megalon megalon marked this pull request as draft March 5, 2023 00:34
@OkGoDoIt
Copy link
Owner

OkGoDoIt commented Mar 8, 2023

Awesome, thank you @megalon! I'm going to go ahead an merge this, and then add a couple commits of my own to address tests, helper functions, naming, etc

@OkGoDoIt OkGoDoIt marked this pull request as ready for review March 8, 2023 21:00
@OkGoDoIt OkGoDoIt merged commit c3d3303 into OkGoDoIt:master Mar 8, 2023
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

Successfully merging this pull request may close these issues.

Moderation endpoint
2 participants