Build AI Assistants Fast
Project description
CyberChipped
Introduction
CyberChipped powers the best AI Companion - CometHeart!
In a few lines of code build a conversational AI Assistant!
Install
pip install cyberchipped
OpenAI Assistant
from cyberchipped.ai import SQLiteDatabase, AI
database = SQLiteDatabase("sqlite.db")
@app.post("/conversation/{user_id}")
async def conversation_endpoint(user_id: str, audio_file: UploadFile = File(...)):
async with AI(
api_key=os.getenv("OPENAI_API_KEY"),
name="CometHeart AI Simple",
instructions="You are CometHeart an AI voice assistant - you answer questions and help with tasks. You keep your responses brief and tailor them for speech.",
database=database
) as ai:
audio_generator = await ai.conversation(user_id, audio_file)
return StreamingResponse(
content=audio_generator,
media_type="audio/x-aac",
)
Database
CyberChipped requires a database to track and manage OpenAI Assistant threads across runs.
You can use MongoDB or SQLite.
Platform Support
Mac and Linux
Run tests
poetry run pytest
Requirements
Python >= 3.12
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
cyberchipped-1.1.0.tar.gz
(5.0 kB
view hashes)
Built Distribution
Close
Hashes for cyberchipped-1.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6a81773fd4981a614b35390cff5726cc41067e7cc2d3bcb9a56e332731979eca |
|
MD5 | 1d7902a3cbf99ee7f3db9853070fc6f8 |
|
BLAKE2b-256 | fb71c5bd74ad1e692c6c3fa824e82dca21b12cca3b121c205604a748cd18d4e8 |