struct OpenRouter::NonChatChoice

Defined in:

openrouter/types/response.cr

Constructors

Instance Method Summary

Instance methods inherited from struct OpenRouter::Choice

finish_reason : String | Nil finish_reason, to_json(io : IO)
to_json(json : JSON::Builder)
to_json

Constructor methods inherited from struct OpenRouter::Choice

new(json : JSON::Any) new

Constructor Detail

def self.new(json : JSON::Any) #

[View source]

Instance Method Detail

def text : String #

[View source]
def to_json(io : IO) #

[View source]
def to_json(json : JSON::Builder) #

[View source]