Providers
OpenAI
Options object
ChatCompletionCreateParams
is exactly the same as the one defined in the OpenAI API documentation.
The output type depends on the stream parameter passed in the request input.
Here are the properties defined in the OpenAI API documentation:
The time it took to process the request. In order to calculate the time it took to process the request, you can use the following code:
The error that occurred while processing the request.