unofficial Deno wrapper for the Open Ai api

Tags Doc Checks License

Usage

import { OpenAI } from "https://deno.land/x/openai/mod.ts";

const openAI = new OpenAI("YOUR_API_KEY");

const completion = await openAI.createCompletion({
  model: "davinci",
  prompt: "The meaning of life is",
});

console.log(completion.choices);

Maintainers

License

MIT