class LLM::CLI::OpenAI::GPT

Defined in:

llm-cli/chat/gpt.cr

Constructors

Class Method Summary

Instance Method Summary

Instance methods inherited from class LLM::CLI::Chat

chat(message : Array(Message)) : Message chat, model_id : String model_id, model_preference : String model_preference, model_preference=(model_preference : String) model_preference=, send(message : String) : String send

Class methods inherited from class LLM::CLI::Chat

requirements : Array(Requirements) requirements, service : LLM::CLI::Chat service

Constructor Detail

def self.new(openai_key : String, openai_org : String | Nil = nil) #

[View source]

Class Method Detail

def self.meets_requirements? #

[View source]
def self.requirements : Requirements #

[View source]

Instance Method Detail

def chat(message : Array(Message)) : Message #

implement the primary interface


[View source]
def model_id : String #

lazily select the best model for the job


[View source]