Class TextOrChatContentPart
An array of content parts with a defined type, each can be of type Text or Image_Url when passing in images. You can pass multiple images by adding multiple Image_Url content parts. Image input is only supported when using the gpt-4-visual-preview model.
public class TextOrChatContentPart
- Inheritance
-
objectTextOrChatContentPart
Constructors
TextOrChatContentPart()
public TextOrChatContentPart()
TextOrChatContentPart(ChatContentPart)
public TextOrChatContentPart(ChatContentPart part)
Parameters
partChatContentPart
TextOrChatContentPart(string)
public TextOrChatContentPart(string text)
Parameters
textstring
Properties
HasValue
public bool HasValue { get; }
Property Value
- bool
IsBase64
public bool IsBase64 { get; }
Property Value
- bool
IsNull
public bool IsNull { get; }
Property Value
- bool
IsString
public bool IsString { get; }
Property Value
- bool
Type
public ChatContentPartType Type { get; }
Property Value
Methods
ToPart()
public ChatContentPart ToPart()
Returns
ToString()
Returns a string that represents the current object.
public override string ToString()
Returns
- string
A string that represents the current object.
Operators
implicit operator string(TextOrChatContentPart)
public static implicit operator string(TextOrChatContentPart content)
Parameters
contentTextOrChatContentPart
Returns
- string
implicit operator TextOrChatContentPart(string)
public static implicit operator TextOrChatContentPart(string text)
Parameters
textstring