Skip to content

KAJdev/async-openai

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

async-openai

An async GPT-3 API wrapper written in python

Installation

pip install git+https://github.com/kajdev/async-openai

Usage

The wrapper is pretty simple at the moment.

from os import getenv
import openai
import asyncio

client = openai.Client(getenv('token'))

async def main():
    print(await client.complete("What is the capital of Italy?"))

if __name__ == "__main__":
    asyncio.run(main())

About

An async GPT-3 API wrapper written in python

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages