openai/openai-dotnet

Public

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

CodeCommitsIssuesPull requestsActionsInsightsSecurity
mailinhphan/clientOptions

Branches

Tags

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

Clone

HTTPS

Download ZIP

OpenAI/src/Custom/Chat/Streaming/InternalCreateChatCompletionStreamResponseChoice.cs

17lines · modecode

1using Microsoft.TypeSpec.Generator.Customizations;
2
3namespace OpenAI.Chat;
4
5[CodeGenType("CreateChatCompletionStreamResponseChoice")]
6internal partial class InternalCreateChatCompletionStreamResponseChoice
7{
8 // CUSTOM: Changed type from string.
9 /// <summary>
10 /// The reason the model stopped generating tokens. This will be `stop` if the model hit a natural stop point or a provided stop sequence,
11 /// `length` if the maximum number of tokens specified in the request was reached,
12 /// `content_filter` if content was omitted due to a flag from our content filters,
13 /// `tool_calls` if the model called a tool, or `function_call` (deprecated) if the model called a function.
14 /// </summary>
15 [CodeGenMember("FinishReason")]
16 public ChatFinishReason? FinishReason { get; }
17}
18