Extremely Popular
unofficial Deno wrapper for the Open Ai api
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
- Dean Srebnik (@load1n9)
- Lino Le Van (@lino-levan)
License
MIT