openai/openai-dotnet

Public

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

CodeCommitsIssuesPull requestsActionsInsightsSecurity
OpenAI_2.0.0-beta.1

Branches

Tags

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

Clone

HTTPS

Download ZIP

src/Custom/Assistants/Assistant.cs

21lines · modecode

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