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.
Inheritance
object
TextOrChatContentPart
Assembly: .dll
Syntax
public class TextOrChatContentPart
Constructors
TextOrChatContentPart()
Declaration
public TextOrChatContentPart()
TextOrChatContentPart(ChatContentPart)
Declaration
public TextOrChatContentPart(ChatContentPart part)
Parameters
TextOrChatContentPart(string)
Declaration
public TextOrChatContentPart(string text)
Parameters
Type |
Name |
Description |
string |
text |
|
Properties
HasValue
Declaration
public bool HasValue { get; }
Property Value
IsBase64
Declaration
public bool IsBase64 { get; }
Property Value
IsNull
Declaration
public bool IsNull { get; }
Property Value
IsString
Declaration
public bool IsString { get; }
Property Value
Type
Declaration
public ChatContentPartType Type { get; }
Property Value
Methods
ToPart()
Declaration
public ChatContentPart ToPart()
Returns
ToString()
Returns a string that represents the current object.
Declaration
public override string ToString()
Returns
Type |
Description |
string |
A string that represents the current object.
|
Overrides
object.ToString()
Operators
implicit operator string(TextOrChatContentPart)
Declaration
public static implicit operator string(TextOrChatContentPart content)
Parameters
Returns
implicit operator TextOrChatContentPart(string)
Declaration
public static implicit operator TextOrChatContentPart(string text)
Parameters
Type |
Name |
Description |
string |
text |
|
Returns