Skip to content

struct OpenAI::ClientConfig
inherits Struct #

Constructors#

.new(auth_token : String, base_url : String = OPENAI_API_URL_V1, org_id : String = "", api_type : ApiType = ApiType::OPENAI, api_version : String = "", assistant_version : String = DEFAULT_ASSISTANT_VERSION, azure_model_mapper_func : Proc(String, String) = ->(model : String) do modelend, empty_messages_limit : UInt32 = DEFAULT_EMPTY_MESSAGES_LIMIT)#

View source

Class methods#

.azure(auth_token : String, base_url : String)#

View source

Methods#

#api_type : ApiType#

View source

#api_version : String#

View source

#assistant_version : String#

View source

#auth_token : String#

View source

#azure_deployment(model : String) : String#

View source

#azure_model_mapper_func : Proc(String, String)#

View source

#base_url : String#

View source

#empty_messages_limit : UInt32#

View source

#http_client : HTTP::Client#

View source

#org_id : String#

View source