![]() |
Qore OpenAiRestClient Module Reference 1.0
|
this class provides the REST client API for communication with OpenAi servers More...
Public Member Functions | |
| constructor (hash< auto > opts, *softbool do_not_connect) | |
| creates the object with the given options | |
Static Public Member Functions | |
| static hash< auto > | getOptions (hash< auto > opts) |
| returns options for OpenAiRestClient::OpenAiRestClient::constructor() | |
Protected Attributes | |
| string | api |
| The API version in use. | |
this class provides the REST client API for communication with OpenAi servers
You must use an API key in the 'token' option to call OpenAi APIs
| OpenAiRestClient::OpenAiRestClient::constructor | ( | hash< auto > | opts, |
| *softbool | do_not_connect ) |
creates the object with the given options
| opts | valid options are all the options for the RestClient class; note that the URL is set by default if not provided (see DefaultUrl) |
| do_not_connect | if False (the default), then a connection will be immediately established to the remote server |
| RESTCLIENT-ERROR | invalid option passed to constructor, unsupported data serialization, etc |