Bavarder / baichat-py

Python wrapper for BAI Chat
https://bavarder.codeberg.page/code/baichat
14 stars 5 forks source link
asyncio baichat chat gpt python theb theb-ai

BAIChat API Python

Installation

Pypi

pip install baichat-py

Codeberg

pip install --index-url https://codeberg.org/api/packages/Bavarder/pypi/simple/ baichat-py

Usage

from baichat_py import Completion

prompt = "Hello, world!"
for token in Completion.create(prompt):
    print(token, end="", flush=True)
    print("")