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
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.0.0.tar.gz
(4.8 kB
view hashes)
Built Distribution
Close
Hashes for cyberchipped-1.0.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 81288636173ecccd4ebbe0ac91d05b270f7be5ad30f3927f968cf998b31a213c |
|
MD5 | def292a32a67e1aefac3d858107b3530 |
|
BLAKE2b-256 | 41542ae7b3b0920dde21716e534f8b6c2d497b8b3248735cf6ba4d5d19ba6e9a |