Constructor for Completions class.
The APIBaseService instance.
Protected
clientCreate Chat Completions.
Generate a chat completion based on the provided messages and parameters using the provided model.
The parameters to send to the service.
Either a Response of ChatsResponse or a Stream.
If validation fails or an error occurs during the request.
Class for handling chat completion requests.