openai/openai-dotnet
Publicmirrored from https://github.com/openai/openai-dotnetAvailable
src/Utility/Generator/CodeGenModelAttribute.cs
27lines · modeblame
9f9f2936Jose Arriaga Maldonado2 years ago | 1 | #nullable enable |
| 2 | | |
| 3 | using System; | |
| 4 | | |
| 5 | namespace OpenAI; | |
| 6 | | |
| 7 | [AttributeUsage(AttributeTargets.Class | AttributeTargets.Enum | AttributeTargets.Struct)] | |
22ab606bStephen Toub2 years ago | 8 | internal sealed class CodeGenModelAttribute : CodeGenTypeAttribute |
9f9f2936Jose Arriaga Maldonado2 years ago | 9 | { |
| 10 | /// <summary> | |
| 11 | /// Gets or sets a coma separated list of additional model usage modes. Allowed values: model, error, intput, output. | |
| 12 | /// </summary> | |
| 13 | public string[]? Usage { get; set; } | |
| 14 | | |
| 15 | /// <summary> | |
| 16 | /// Gets or sets a coma separated list of additional model serialization formats. | |
| 17 | /// </summary> | |
| 18 | public string[]? Formats { get; set; } | |
| 19 | | |
| 20 | public CodeGenModelAttribute() : base(null) | |
| 21 | { | |
| 22 | } | |
| 23 | | |
| 24 | public CodeGenModelAttribute(string originalName) : base(originalName) | |
| 25 | { | |
| 26 | } | |
| 27 | } |