class OpenAI::Client
- OpenAI::Client
- Reference
- Object
Defined in:
openai/client.crConstant Summary
-
BASE_URL =
"https://api.openai.com/v1/"
Constructors
Instance Method Summary
- #create_completion(prompt : String, options : NamedTuple(model: String, max_tokens: Int32))
- #list_models
- #retrieve_model(model_id : String)
Constructor Detail
Instance Method Detail
def create_completion(prompt : String, options : NamedTuple(model: String, max_tokens: Int32))
#