import { OpenAI } from "https://deno.land/x/openai_deno@v0.9.8/mod.ts";
Creates a completion for the chat message
Parameters
ID of the model to use. See the model endpoint compatibility table for details on which models work with the Chat API.
messages: ChatFormat[]
A list of messages comprising the conversation so far. Example Python code.
optional
params: CreateChatParamsOptional parameters for the API.
Returns
Promise<CreateChatResponse>
The chat completion response.