adamrushy / OpenAISwift

This is a wrapper library around the ChatGPT and OpenAI HTTP API
MIT License
1.62k stars 246 forks source link

sendModeration endpoint #86

Closed mikwat closed 1 year ago

mikwat commented 1 year ago

Simple implementation of moderation API: https://platform.openai.com/docs/api-reference/moderations

Only models the flagged response field, not categories or category_scores. That could be added later.

Addresses https://github.com/adamrushy/OpenAISwift/issues/74