Skip to main content
Module

x/openai/README.md

unofficial Deno wrapper for the Open Ai api
Extremely Popular
Go to Latest
File

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