openai/openai-dotnet

Public

mirrored from https://github.com/openai/openai-dotnetAvailable

CodeCommitsIssuesPull requestsActionsInsightsSecurity
OpenAI_2.1.0

Branches

Tags

  • No tags available.
0Branches0Tags
Go to file
Add file
Code

Clone

HTTPS

Download ZIP

src/Custom/Assistants/Assistant.cs

24lines · modecode

1using System.Diagnostics.CodeAnalysis;
2
3namespace OpenAI.Assistants;
4
5[Experimental("OPENAI001")]
6[CodeGenModel("AssistantObject")]
7public partial class Assistant
8{
9 // CUSTOM: Made internal.
10 /// <summary> The object type, which is always `assistant`. </summary>
11 [CodeGenMember("Object")]
12 internal InternalAssistantObjectObject Object { get; } = InternalAssistantObjectObject.Assistant;
13
14 /// <inheritdoc cref="AssistantResponseFormat"/>
15 public AssistantResponseFormat ResponseFormat { get; }
16
17 /// <summary>
18 /// 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.
19 ///
20 /// We generally recommend altering this or temperature but not both.
21 /// </summary>
22 [CodeGenMember("TopP")]
23 public float? NucleusSamplingFactor { get; }
24}
25