class OpenAI::Client

Defined in:

openai/client.cr

Constant Summary

BASE_URL = "https://api.openai.com/v1/"

Constructors

Instance Method Summary

Constructor Detail

def self.new(api_key : String) #

[View source]

Instance Method Detail

def create_completion(prompt : String, options : NamedTuple(model: String, max_tokens: Int32)) #

[View source]
def list_models #

[View source]
def retrieve_model(model_id : String) #

[View source]