The main class of the package. It is a singleton class, so you can only have one instance of it.
You can also access the instance by calling the OpenAI.instance getter.
This represents the message of the OpenAIChatCompletionChoiceModel model of the OpenAI API, which is used and get returned while using the OpenAIChat methods.
This class represents a choice of the OpenAIChatCompletionModel model of the OpenAI API, which is used and get returned while using the OpenAIChat methods.
This represents the tool call of the OpenAIChatCompletionChoiceMessageModel model of the OpenAI API, which is used and get returned while using the OpenAIChat methods.
The OpenAIStreamChatCompletionChoiceModel class represents the chat completion choice response model of the OpenAI API, which is used and get returned while using the chat methods that leverages Stream functionality.
The OpenAIStreamChatCompletionModel class represents the chat completion response model of the OpenAI API, which is used and get returned while using the chat methods that leverages Stream functionality.
The OpenAIStreamChatCompletionUsageModel class represents the usage model of the OpenAI API, which is used and get returned while using the chat methods that leverages Stream functionality.
This represents the stream tool call of the OpenAIChatCompletionChoiceMessageModel model of the OpenAI API, which is used and get returned while using the OpenAIChat methods.
This represents the message of the RequestFunctionMessage model of the OpenAI API, which is used while using the OpenAIChat methods, precisely to send a response function message as a request function message for next requests.
This exception is thrown when an unexpected non-error response is got, this means that the response from the request does not have an error sign (the error field), but it is not no the success response as well.