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
|200|In this case, the call will stream back with the full generation and `finish_reason` will be either 'length' or 'stop' for each generated response.|
195
195
196
196
**Example request payload:**
@@ -224,8 +224,8 @@ The table below outlines the various ways content filtering can appear:
224
224
225
225
### Scenario: You make a streaming completions call asking for multiple completions and at least a portion of the output content is filtered
| 200 | For a given generation index, the last chunk of the generation includes a non-null `finish_reason` value. The value is `content_filter` when the generation was filtered.|
230
230
231
231
**Example request payload:**
@@ -311,14 +311,14 @@ When annotations are enabled as shown in the code snippet below, the following i
311
311
312
312
Optional models can be enabled in annotate (returns information when content was flagged, but not filtered) or filter mode (returns information when content was flagged and filtered).
313
313
314
-
When annotations are enabled as shown in the code snippet below, the following information is returned by the API for optional models: jailbreak, indirect attacks, protected material text and protected material code:
When annotations are enabled as shown in the code snippet below, the following information is returned by the API for optional models:
318
315
319
-
For the protected material code model, the following additional information is returned by the API:
320
-
- an example citation of a public GitHub repository where a code snippet was found
321
-
- the license of the repository.
316
+
|Model| Output|
317
+
|--|--|
318
+
|jailbreak|detected (true or false),</br>filtered (true or false)|
319
+
|indirect attacks|detected (true or false),</br>filtered (true or false)|
320
+
|protected material text|detected (true or false),</br>filtered (true or false)|
321
+
|protected material code|detected (true or false),</br>filtered (true or false),</br>Example citation of public GitHub repository where code snippet was found,</br>The license of the repository|
322
322
323
323
When displaying code in your application, we strongly recommend that the application also displays the example citation from the annotations. Compliance with the cited license may also be required for Customer Copyright Commitment coverage.
0 commit comments