-
Notifications
You must be signed in to change notification settings - Fork 37
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
47 changed files
with
756 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
15 changes: 15 additions & 0 deletions
15
docs/ChatGptNet.Models/ChatGptChoice/ContentFilterResults.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
# ChatGptChoice.ContentFilterResults property | ||
|
||
Gets or sets the content filter results for the this [`ChatGptChoice`](../ChatGptChoice.md). | ||
|
||
```csharp | ||
public ChatGptContentFilterResults? ContentFilterResults { get; set; } | ||
``` | ||
|
||
## See Also | ||
|
||
* class [ChatGptContentFilterResults](../ChatGptContentFilterResults.md) | ||
* class [ChatGptChoice](../ChatGptChoice.md) | ||
* namespace [ChatGptNet.Models](../../ChatGptNet.md) | ||
|
||
<!-- DO NOT EDIT: generated by xmldocmd for ChatGptNet.dll --> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
# ChatGptChoice.IsChoiceFiltered property | ||
|
||
Gets or sets a value indicating whether the this [`ChatGptChoice`](../ChatGptChoice.md) has been filtered by content filtering system. | ||
|
||
```csharp | ||
public bool IsChoiceFiltered { get; } | ||
``` | ||
|
||
## See Also | ||
|
||
* class [ChatGptChoice](../ChatGptChoice.md) | ||
* namespace [ChatGptNet.Models](../../ChatGptNet.md) | ||
|
||
<!-- DO NOT EDIT: generated by xmldocmd for ChatGptNet.dll --> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
# ChatGptContentFilterResult class | ||
|
||
Contains detail about a particular content filter result. | ||
|
||
```csharp | ||
public class ChatGptContentFilterResult | ||
``` | ||
|
||
## Public Members | ||
|
||
| name | description | | ||
| --- | --- | | ||
| [ChatGptContentFilterResult](ChatGptContentFilterResult/ChatGptContentFilterResult.md)() | The default constructor. | | ||
| [Filtered](ChatGptContentFilterResult/Filtered.md) { get; set; } | Gets or sets a value indicating whether the content has been filtered. | | ||
| [Severity](ChatGptContentFilterResult/Severity.md) { get; set; } | Gets or sets the severity levels of the content. | | ||
|
||
## Remarks | ||
|
||
See [Content filtering](https://learn.microsoft.com/azure/ai-services/openai/concepts/content-filter) for more information. | ||
## See Also | ||
|
||
* namespace [ChatGptNet.Models](../ChatGptNet.md) | ||
* [ChatGptContentFilterResult.cs](https://github.com/marcominerva/ChatGptNet/tree/master/src/ChatGptNet/Models/ChatGptContentFilterResult.cs) | ||
<!-- DO NOT EDIT: generated by xmldocmd for ChatGptNet.dll --> |
14 changes: 14 additions & 0 deletions
14
docs/ChatGptNet.Models/ChatGptContentFilterResult/ChatGptContentFilterResult.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
# ChatGptContentFilterResult constructor | ||
|
||
The default constructor. | ||
|
||
```csharp | ||
public ChatGptContentFilterResult() | ||
``` | ||
|
||
## See Also | ||
|
||
* class [ChatGptContentFilterResult](../ChatGptContentFilterResult.md) | ||
* namespace [ChatGptNet.Models](../../ChatGptNet.md) | ||
|
||
<!-- DO NOT EDIT: generated by xmldocmd for ChatGptNet.dll --> |
14 changes: 14 additions & 0 deletions
14
docs/ChatGptNet.Models/ChatGptContentFilterResult/Filtered.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
# ChatGptContentFilterResult.Filtered property | ||
|
||
Gets or sets a value indicating whether the content has been filtered. | ||
|
||
```csharp | ||
public bool Filtered { get; set; } | ||
``` | ||
|
||
## See Also | ||
|
||
* class [ChatGptContentFilterResult](../ChatGptContentFilterResult.md) | ||
* namespace [ChatGptNet.Models](../../ChatGptNet.md) | ||
|
||
<!-- DO NOT EDIT: generated by xmldocmd for ChatGptNet.dll --> |
24 changes: 24 additions & 0 deletions
24
docs/ChatGptNet.Models/ChatGptContentFilterResult/Severity.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
# ChatGptContentFilterResult.Severity property | ||
|
||
Gets or sets the severity levels of the content. | ||
|
||
```csharp | ||
public string Severity { get; set; } | ||
``` | ||
|
||
## Remarks | ||
|
||
Currently supported severity levels are: | ||
|
||
* **Safe** – Content may be related to violence, self-harm, sexual, or hate categories but the terms are used in general, journalistic, scientific, medical, and similar professional contexts, which are appropriate for most audiences. | ||
* **Low** – Content that expresses prejudiced, judgmental, or opinionated views, includes offensive use of language, stereotyping, use cases exploring a fictional world (for example, gaming, literature) and depictions at low intensity. | ||
* **Medium** – Content that uses offensive, insulting, mocking, intimidating, or demeaning language towards specific identity groups, includes depictions of seeking and executing harmful instructions, fantasies, glorification, promotion of harm at medium intensity. | ||
* **High** – Content that displays explicit and severe harmful instructions, actions, damage, or abuse; includes endorsement, glorification, or promotion of severe harmful acts, extreme or illegal forms of harm, radicalization, or non-consensual power exchange or abuse. | ||
|
||
## See Also | ||
|
||
* class [ChatGptContentFilterSeverityLevels](../ChatGptContentFilterSeverityLevels.md) | ||
* class [ChatGptContentFilterResult](../ChatGptContentFilterResult.md) | ||
* namespace [ChatGptNet.Models](../../ChatGptNet.md) | ||
|
||
<!-- DO NOT EDIT: generated by xmldocmd for ChatGptNet.dll --> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
# ChatGptContentFilterResults class | ||
|
||
Contains details about conteng filtering results. | ||
|
||
```csharp | ||
public class ChatGptContentFilterResults | ||
``` | ||
|
||
## Public Members | ||
|
||
| name | description | | ||
| --- | --- | | ||
| [ChatGptContentFilterResults](ChatGptContentFilterResults/ChatGptContentFilterResults.md)() | The default constructor. | | ||
| [Hate](ChatGptContentFilterResults/Hate.md) { get; set; } | Gets of sets information about the hate content filter. | | ||
| [SelfHarm](ChatGptContentFilterResults/SelfHarm.md) { get; set; } | Gets of sets information about the self-harm content filter. | | ||
| [Sexual](ChatGptContentFilterResults/Sexual.md) { get; set; } | Gets of sets information about the sexual content filter. | | ||
| [Violence](ChatGptContentFilterResults/Violence.md) { get; set; } | Gets or sets information about the violence content filter. | | ||
|
||
## Remarks | ||
|
||
See [Content filtering](https://learn.microsoft.com/azure/ai-services/openai/concepts/content-filter) for more information. | ||
## See Also | ||
|
||
* namespace [ChatGptNet.Models](../ChatGptNet.md) | ||
* [ChatGptContentFilterResults.cs](https://github.com/marcominerva/ChatGptNet/tree/master/src/ChatGptNet/Models/ChatGptContentFilterResults.cs) | ||
<!-- DO NOT EDIT: generated by xmldocmd for ChatGptNet.dll --> |
14 changes: 14 additions & 0 deletions
14
docs/ChatGptNet.Models/ChatGptContentFilterResults/ChatGptContentFilterResults.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
# ChatGptContentFilterResults constructor | ||
|
||
The default constructor. | ||
|
||
```csharp | ||
public ChatGptContentFilterResults() | ||
``` | ||
|
||
## See Also | ||
|
||
* class [ChatGptContentFilterResults](../ChatGptContentFilterResults.md) | ||
* namespace [ChatGptNet.Models](../../ChatGptNet.md) | ||
|
||
<!-- DO NOT EDIT: generated by xmldocmd for ChatGptNet.dll --> |
19 changes: 19 additions & 0 deletions
19
docs/ChatGptNet.Models/ChatGptContentFilterResults/Hate.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
# ChatGptContentFilterResults.Hate property | ||
|
||
Gets of sets information about the hate content filter. | ||
|
||
```csharp | ||
public ChatGptContentFilterResult Hate { get; set; } | ||
``` | ||
|
||
## Remarks | ||
|
||
The hate category describes language attacks or uses that include pejorative or discriminatory language with reference to a person or identity group on the basis of certain differentiating attributes of these groups including but not limited to race, ethnicity, nationality, gender identity and expression, sexual orientation, religion, immigration status, ability status, personal appearance, and body size. | ||
|
||
## See Also | ||
|
||
* class [ChatGptContentFilterResult](../ChatGptContentFilterResult.md) | ||
* class [ChatGptContentFilterResults](../ChatGptContentFilterResults.md) | ||
* namespace [ChatGptNet.Models](../../ChatGptNet.md) | ||
|
||
<!-- DO NOT EDIT: generated by xmldocmd for ChatGptNet.dll --> |
19 changes: 19 additions & 0 deletions
19
docs/ChatGptNet.Models/ChatGptContentFilterResults/SelfHarm.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
# ChatGptContentFilterResults.SelfHarm property | ||
|
||
Gets of sets information about the self-harm content filter. | ||
|
||
```csharp | ||
public ChatGptContentFilterResult SelfHarm { get; set; } | ||
``` | ||
|
||
## Remarks | ||
|
||
The self-harm category describes language related to physical actions intended to purposely hurt, injure, or damage one’s body, or kill oneself. | ||
|
||
## See Also | ||
|
||
* class [ChatGptContentFilterResult](../ChatGptContentFilterResult.md) | ||
* class [ChatGptContentFilterResults](../ChatGptContentFilterResults.md) | ||
* namespace [ChatGptNet.Models](../../ChatGptNet.md) | ||
|
||
<!-- DO NOT EDIT: generated by xmldocmd for ChatGptNet.dll --> |
19 changes: 19 additions & 0 deletions
19
docs/ChatGptNet.Models/ChatGptContentFilterResults/Sexual.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
# ChatGptContentFilterResults.Sexual property | ||
|
||
Gets of sets information about the sexual content filter. | ||
|
||
```csharp | ||
public ChatGptContentFilterResult Sexual { get; set; } | ||
``` | ||
|
||
## Remarks | ||
|
||
The sexual category describes language related to anatomical organs and genitals, romantic relationships, acts portrayed in erotic or affectionate terms, physical sexual acts, including those portrayed as an assault or a forced sexual violent act against one's will, prostitution, pornography, and abuse. | ||
|
||
## See Also | ||
|
||
* class [ChatGptContentFilterResult](../ChatGptContentFilterResult.md) | ||
* class [ChatGptContentFilterResults](../ChatGptContentFilterResults.md) | ||
* namespace [ChatGptNet.Models](../../ChatGptNet.md) | ||
|
||
<!-- DO NOT EDIT: generated by xmldocmd for ChatGptNet.dll --> |
19 changes: 19 additions & 0 deletions
19
docs/ChatGptNet.Models/ChatGptContentFilterResults/Violence.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
# ChatGptContentFilterResults.Violence property | ||
|
||
Gets or sets information about the violence content filter. | ||
|
||
```csharp | ||
public ChatGptContentFilterResult Violence { get; set; } | ||
``` | ||
|
||
## Remarks | ||
|
||
The sexual category describes language related to anatomical organs and genitals, romantic relationships, acts portrayed in erotic or affectionate terms, physical sexual acts, including those portrayed as an assault or a forced sexual violent act against one's will, prostitution, pornography, and abuse. | ||
|
||
## See Also | ||
|
||
* class [ChatGptContentFilterResult](../ChatGptContentFilterResult.md) | ||
* class [ChatGptContentFilterResults](../ChatGptContentFilterResults.md) | ||
* namespace [ChatGptNet.Models](../../ChatGptNet.md) | ||
|
||
<!-- DO NOT EDIT: generated by xmldocmd for ChatGptNet.dll --> |
27 changes: 27 additions & 0 deletions
27
docs/ChatGptNet.Models/ChatGptContentFilterSeverityLevels.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
# ChatGptContentFilterSeverityLevels class | ||
|
||
Contains all the content filter severity levels defined by Azure OpenAI Service. | ||
|
||
```csharp | ||
public static class ChatGptContentFilterSeverityLevels | ||
``` | ||
|
||
## Public Members | ||
|
||
| name | description | | ||
| --- | --- | | ||
| const [High](ChatGptContentFilterSeverityLevels/High.md) | Content that displays explicit and severe harmful instructions, actions, damage, or abuse; includes endorsement, glorification, or promotion of severe harmful acts, extreme or illegal forms of harm, radicalization, or non-consensual power exchange or abuse. | | ||
| const [Low](ChatGptContentFilterSeverityLevels/Low.md) | Content that expresses prejudiced, judgmental, or opinionated views, includes offensive use of language, stereotyping, use cases exploring a fictional world (for example, gaming, literature) and depictions at low intensity. | | ||
| const [Medium](ChatGptContentFilterSeverityLevels/Medium.md) | Content that uses offensive, insulting, mocking, intimidating, or demeaning language towards specific identity groups, includes depictions of seeking and executing harmful instructions, fantasies, glorification, promotion of harm at medium intensity. | | ||
| const [Safe](ChatGptContentFilterSeverityLevels/Safe.md) | Content may be related to violence, self-harm, sexual, or hate categories but the terms are used in general, journalistic, scientific, medical, and similar professional contexts, which are appropriate for most audiences. | | ||
|
||
## Remarks | ||
|
||
See [Content filtering](https://learn.microsoft.com/azure/ai-services/openai/concepts/content-filter#severity-levels) for more information. | ||
## See Also | ||
|
||
* namespace [ChatGptNet.Models](../ChatGptNet.md) | ||
* [ChatGptContentFilterSeverityLevels.cs](https://github.com/marcominerva/ChatGptNet/tree/master/src/ChatGptNet/Models/ChatGptContentFilterSeverityLevels.cs) | ||
<!-- DO NOT EDIT: generated by xmldocmd for ChatGptNet.dll --> |
14 changes: 14 additions & 0 deletions
14
docs/ChatGptNet.Models/ChatGptContentFilterSeverityLevels/High.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
# ChatGptContentFilterSeverityLevels.High field | ||
|
||
Content that displays explicit and severe harmful instructions, actions, damage, or abuse; includes endorsement, glorification, or promotion of severe harmful acts, extreme or illegal forms of harm, radicalization, or non-consensual power exchange or abuse. | ||
|
||
```csharp | ||
public const string High; | ||
``` | ||
|
||
## See Also | ||
|
||
* class [ChatGptContentFilterSeverityLevels](../ChatGptContentFilterSeverityLevels.md) | ||
* namespace [ChatGptNet.Models](../../ChatGptNet.md) | ||
|
||
<!-- DO NOT EDIT: generated by xmldocmd for ChatGptNet.dll --> |
14 changes: 14 additions & 0 deletions
14
docs/ChatGptNet.Models/ChatGptContentFilterSeverityLevels/Low.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
# ChatGptContentFilterSeverityLevels.Low field | ||
|
||
Content that expresses prejudiced, judgmental, or opinionated views, includes offensive use of language, stereotyping, use cases exploring a fictional world (for example, gaming, literature) and depictions at low intensity. | ||
|
||
```csharp | ||
public const string Low; | ||
``` | ||
|
||
## See Also | ||
|
||
* class [ChatGptContentFilterSeverityLevels](../ChatGptContentFilterSeverityLevels.md) | ||
* namespace [ChatGptNet.Models](../../ChatGptNet.md) | ||
|
||
<!-- DO NOT EDIT: generated by xmldocmd for ChatGptNet.dll --> |
14 changes: 14 additions & 0 deletions
14
docs/ChatGptNet.Models/ChatGptContentFilterSeverityLevels/Medium.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
# ChatGptContentFilterSeverityLevels.Medium field | ||
|
||
Content that uses offensive, insulting, mocking, intimidating, or demeaning language towards specific identity groups, includes depictions of seeking and executing harmful instructions, fantasies, glorification, promotion of harm at medium intensity. | ||
|
||
```csharp | ||
public const string Medium; | ||
``` | ||
|
||
## See Also | ||
|
||
* class [ChatGptContentFilterSeverityLevels](../ChatGptContentFilterSeverityLevels.md) | ||
* namespace [ChatGptNet.Models](../../ChatGptNet.md) | ||
|
||
<!-- DO NOT EDIT: generated by xmldocmd for ChatGptNet.dll --> |
14 changes: 14 additions & 0 deletions
14
docs/ChatGptNet.Models/ChatGptContentFilterSeverityLevels/Safe.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
# ChatGptContentFilterSeverityLevels.Safe field | ||
|
||
Content may be related to violence, self-harm, sexual, or hate categories but the terms are used in general, journalistic, scientific, medical, and similar professional contexts, which are appropriate for most audiences. | ||
|
||
```csharp | ||
public const string Safe; | ||
``` | ||
|
||
## See Also | ||
|
||
* class [ChatGptContentFilterSeverityLevels](../ChatGptContentFilterSeverityLevels.md) | ||
* namespace [ChatGptNet.Models](../../ChatGptNet.md) | ||
|
||
<!-- DO NOT EDIT: generated by xmldocmd for ChatGptNet.dll --> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
# ChatGptError.InnerError property | ||
|
||
Contains further details about the error. | ||
|
||
```csharp | ||
public ChatGptInnerError? InnerError { get; set; } | ||
``` | ||
|
||
## See Also | ||
|
||
* class [ChatGptInnerError](../ChatGptInnerError.md) | ||
* class [ChatGptError](../ChatGptError.md) | ||
* namespace [ChatGptNet.Models](../../ChatGptNet.md) | ||
|
||
<!-- DO NOT EDIT: generated by xmldocmd for ChatGptNet.dll --> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
# ChatGptError.StatusCode property | ||
|
||
Gets or sets the HTTP status code of the error. | ||
|
||
```csharp | ||
public int StatusCode { get; set; } | ||
``` | ||
|
||
## See Also | ||
|
||
* class [ChatGptError](../ChatGptError.md) | ||
* namespace [ChatGptNet.Models](../../ChatGptNet.md) | ||
|
||
<!-- DO NOT EDIT: generated by xmldocmd for ChatGptNet.dll --> |
Oops, something went wrong.