openai/openai-dotnet
Publicmirrored from https://github.com/openai/openai-dotnetAvailable
OpenAI/src/Custom/Assistants/Assistant.cs
25lines · modecode
| 1 | using Microsoft.TypeSpec.Generator.Customizations; |
| 2 | |
| 3 | namespace OpenAI.Assistants; |
| 4 | |
| 5 | [CodeGenType("AssistantObject")] |
| 6 | public partial class Assistant |
| 7 | { |
| 8 | private const string AssistantValue = "assistant"; |
| 9 | |
| 10 | // CUSTOM: Made internal. |
| 11 | /// <summary> The object type, which is always `assistant`. </summary> |
| 12 | [CodeGenMember("Object")] |
| 13 | internal string Object { get; } = AssistantValue; |
| 14 | |
| 15 | /// <inheritdoc cref="AssistantResponseFormat"/> |
| 16 | public AssistantResponseFormat ResponseFormat { get; } |
| 17 | |
| 18 | /// <summary> |
| 19 | /// An alternative to sampling with temperature, called nucleus sampling, where the model considers the results of the tokens with top_p probability mass. So 0.1 means only the tokens comprising the top 10% probability mass are considered. |
| 20 | /// |
| 21 | /// We generally recommend altering this or temperature but not both. |
| 22 | /// </summary> |
| 23 | [CodeGenMember("TopP")] |
| 24 | public float? NucleusSamplingFactor { get; } |
| 25 | } |
| 26 | |