You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+13Lines changed: 13 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -193,6 +193,19 @@ openai wandb sync
193
193
194
194
For more information on fine tuning, read the [fine-tuning guide](https://beta.openai.com/docs/guides/fine-tuning) in the OpenAI documentation.
195
195
196
+
### Moderation
197
+
198
+
OpenAI provides a Moderation endpoint that can be used to check whether content complies with the OpenAI [content policy](https://beta.openai.com/docs/usage-policies)
199
+
200
+
```python
201
+
import openai
202
+
openai.api_key ="sk-..."# supply your API key however you choose
203
+
204
+
moderation_resp = openai.Moderation.create(input="Here is some perfectly innocuous text that follows all OpenAI content policies.")
205
+
```
206
+
207
+
See the [moderation guide](https://beta.openai.com/docs/guides/moderation) for more details.
0 commit comments