struct Turquoise::Eloquent::Chat::Request

Included Modules

Defined in:

turquoise/eloquent/api.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(pull : JSON::PullParser) #

[View source]
def self.new #

[View source]

Instance Method Detail

def <<(message : Chat::Completion::Message) #

Keep maximum size and system message


[View source]
def frequency_penalty : Int32 | Nil #

[View source]
def frequency_penalty=(frequency_penalty : Int32 | Nil) #

[View source]
def max_tokens : Int32 | Nil #

[View source]
def max_tokens=(max_tokens : Int32 | Nil) #

[View source]
def messages : Deque(Chat::Completion::Message) #

[View source]
def messages=(messages : Deque(Chat::Completion::Message)) #

[View source]
def presence_penalty : Int32 | Nil #

[View source]
def presence_penalty=(presence_penalty : Int32 | Nil) #

[View source]
def repetition_penalty : Int32 | Nil #

[View source]
def repetition_penalty=(repetition_penalty : Int32 | Nil) #

[View source]
def seed : Int32 | Nil #

[View source]
def seed=(seed : Int32 | Nil) #

[View source]
def temperature : Int32 | Nil #

[View source]
def temperature=(temperature : Int32 | Nil) #

[View source]
def tools : Array(Turquoise::Eloquent::Chat::Tool) #

[View source]
def tools=(tools : Array(Turquoise::Eloquent::Chat::Tool)) #

[View source]
def top_k : Int32 | Nil #

[View source]
def top_k=(top_k : Int32 | Nil) #

[View source]
def top_p : Int32 | Nil #

[View source]
def top_p=(top_p : Int32 | Nil) #

[View source]