openai/openai-dotnet

Public

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

CodeCommitsIssuesPull requestsActionsInsightsSecurity
OpenAI_2.2.0

Branches

Tags

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

Clone

HTTPS

Download ZIP

src/Custom/Chat/Internal/InternalChatCompletionResponseMessage.cs

24lines · modeblame

9f9f2936Jose Arriaga Maldonado2 years ago1using System.Collections.Generic;
2
3namespace OpenAI.Chat;
4
5
0ca4c062Jose Arriaga Maldonado1 years ago6[CodeGenType("ChatCompletionResponseMessage")]
9f9f2936Jose Arriaga Maldonado2 years ago7[CodeGenSuppress("InternalChatCompletionResponseMessage", typeof(IEnumerable<ChatMessageContentPart>))]
8internal partial class InternalChatCompletionResponseMessage
9{
10// CUSTOM: Changed type from InternalChatCompletionResponseMessageRole.
11/// <summary> The role of the author of this message. </summary>
12[CodeGenMember("Role")]
13public ChatMessageRole Role { get; } = ChatMessageRole.Assistant;
14
15// CUSTOM: Changed type from string.
16/// <summary> The contents of the message. </summary>
17[CodeGenMember("Content")]
31c2ba63Jose Arriaga Maldonado1 years ago18public ChatMessageContent Content { get; }
9f9f2936Jose Arriaga Maldonado2 years ago19
20// CUSTOM: Changed type from InternalChatCompletionResponseMessageFunctionCall.
21/// <summary> Deprecated and replaced by `tool_calls`. The name and arguments of a function that should be called, as generated by the model. </summary>
22[CodeGenMember("FunctionCall")]
23public ChatFunctionCall FunctionCall { get; }
24}