import { OpenAI } from "https://deno.land/x/simple_openai@v1.3.2/mod.ts";
Please check OpenAI official document for details.
Examples
Example 1
Example 1
const result = await openai.createChatCompletion({
model: "gpt-3.5-turbo",
messages: [{
role: "user",
content: "hello."
}]
});