OpenAI::Client::Config
Inherits Struct / Value / Object
Constructors
new(api_key : String, api_base : String, org_id : String, api_type : ApiType, api_version : String | Nil = nil, empty_msg_limit : Int32 = EMPTY_MESSAGES_LIMIT, model_mapper : Proc(String, String) | Nil = nil, proxy : ProxyConfig | Nil = nil)
SourceClass methods
azure(api_key : String | Nil, api_base : String | Nil, api_type : ApiType = :azure, model_mapper : Proc(String, String) | Nil = nil, proxy = nil)
Sourcedefault(api_key : String | Nil = nil, proxy = nil)
SourceInstance methods
api_base
api_key
api_type
api_version
azure_deployment_by_model(model : String) : String
Sourceclone
Sourcecopy_with(api_key _api_key = @api_key, api_base _api_base = @api_base, org_id _org_id = @org_id, api_type _api_type = @api_type, api_version _api_version = @api_version, empty_msg_limit _empty_msg_limit = @empty_msg_limit, model_mapper _model_mapper = @model_mapper, proxy _proxy = @proxy)
Sourceempty_msg_limit
model_mapper
org_id
proxy
req_headers
Source