sashabaranov / go-openai

OpenAI ChatGPT, GPT-3, GPT-4, DALL·E, Whisper API wrapper for Go
Apache License 2.0
8.93k stars 1.36k forks source link

Add moderation models #477

Open sashabaranov opened 1 year ago

sashabaranov commented 1 year ago

There's are a bunch of new Moderation models available now, let's add them to our constants

https://platform.openai.com/docs/models/overview

ealvar3z commented 12 months ago

@sashabaranov Do you want this in completion.go or on a separate file? I ask because CreateCompletion() defaults to "/completions" not the "/moderations" urlSuffix on the completion request? Please advise.

ealvar3z commented 12 months ago

@sashabaranov never mind, this is already implemented in moderation.go. I think this issue should be closed then.