This repository has been archived on 2024-02-25. You can view files and clone it, but cannot push or open issues or pull requests.
Find a file
2023-06-04 21:13:44 +00:00
.github/workflows ci: add python publish 2023-04-26 14:13:02 +02:00
baichat_py feat: ability to set custom timeout #6 2023-06-04 21:13:44 +00:00
tests chat: inital commit 2023-04-26 14:03:03 +02:00
.gitignore misc: add gitignore 2023-04-26 14:15:30 +02:00
poetry.lock poetry: add deps 2023-05-28 23:58:38 +02:00
pyproject.toml poetry: add deps 2023-05-28 23:58:38 +02:00
README.md feat: rework Baichat from scratch (fix #1, fix #2) 2023-05-28 21:57:06 +00:00

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