class

OpenAI::ChatCompletionRequestMessageContentPartText

Inherits JSON::Serializable < Reference < Object

Learn about text inputs.

Constructors

new(type_value : ChatCompletionRequestMessageContentPartTextType = ChatCompletionRequestMessageContentPartTextType::Text, text : String = "")
Source
new(*, __pull_for_json_serializable pull : JSON::PullParser)
Source

Instance methods

text

The text content.

Source
text=(text : String)

The text content.

Source
type_value

The type of the content part.

Source
type_value=(type_value : ChatCompletionRequestMessageContentPartTextType)

The type of the content part.

Source