Skip to content

Bavarder/baichat-py

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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("")