8000 GitHub - eibens/gpt3_utils
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

eibens/gpt3_utils

Repository files navigation

gpt3_utils

gpt3_utils is a set of tools for working with OpenAI's GPT3 API. It is implemented in TypeScript for Deno.

License Github tag Build Code coverage

Getting Started

Set an environment variable called OPENAI_API_KEY with your API key. Then run the example:

deno run \
--allow-env=OPENAI_API_KEY \
--allow-net=api.openai.com \
https://raw.githubusercontent.com/eibens/gpt3_utils/v1.0.0-alpha.3/example.ts \
rainbow

Warning: Running the example will use some of your API resources. See example.ts and completions.ts for details on the TypeScript API. Import gpt3_utils from GitHub, where ref is a Git ref name such as main or a version tag:

import * as openai from "https://raw.githubusercontent.com/eibens/gpt3_utils/{ref}/mod.ts";

Note on tokenize.ts

The mod.ts module exports all other modules, except for tokenize.ts. The reason is that the dependencies of the latter are quite large (~1.5 MB).

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published
0