openai/openai-dotnet
Publicmirrored from https://github.com/openai/openai-dotnetAvailable
OpenAI/src/Custom/Chat/Streaming/InternalCreateChatCompletionStreamResponseChoice.cs
17lines · modecode
| 1 | using Microsoft.TypeSpec.Generator.Customizations; |
| 2 | |
| 3 | namespace OpenAI.Chat; |
| 4 | |
| 5 | [CodeGenType("CreateChatCompletionStreamResponseChoice")] |
| 6 | internal 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 | |