Build AI Assistants Fast
Project description
CyberChipped
CyberChipped is a Python library that provides an AI-powered conversation interface using OpenAI's Assistant API. It supports both text and audio-based interactions, with features like thread management, message persistence, and custom tool integration.
Features
- Streaming text-based conversations with AI
- Audio transcription and streaming text-to-speech conversion
- Thread management for maintaining conversation context
- Message persistence using SQLite or MongoDB
- Custom tool integration for extending AI capabilities
Installation
You can install CyberChipped using pip:
pip install cyberchipped
Usage
Here's a basic example of how to use CyberChipped:
from cyberchipped import AI, SQLiteDatabase
async def main():
database = SQLiteDatabase("conversations.db")
async with AI("your_openai_api_key", "AI Assistant", "Your instructions here", database) as ai:
user_id = "user123"
response = await ai.text(user_id, "Hello, AI!")
async for chunk in response:
print(chunk, end="", flush=True)
print()
# Run the async main function
import asyncio
asyncio.run(main())
Contributing
Contributions to CyberChipped are welcome! Please feel free to submit a Pull Request.
License
This project is licensed under the MIT License - see the LICENSE file for details.
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
Built Distribution
File details
Details for the file cyberchipped-2.1.3.tar.gz
.
File metadata
- Download URL: cyberchipped-2.1.3.tar.gz
- Upload date:
- Size: 5.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.9.20
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9d4b1ccfd7556ef980d7c9a46a48805d9456257cefe95d9362ff7a58cd73735d |
|
MD5 | 1d697913e4af7382c9d9b80b127cf2a8 |
|
BLAKE2b-256 | e695f63b2ac9b18f8fa8a793b38c6925709eb9722f61183ce64e2b226a803095 |
File details
Details for the file cyberchipped-2.1.3-py3-none-any.whl
.
File metadata
- Download URL: cyberchipped-2.1.3-py3-none-any.whl
- Upload date:
- Size: 5.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.9.20
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 864e21edfce0ef25b19f631c40e992f0a9e498f3070619092226baa17ccdb234 |
|
MD5 | a296ce1277c3ef987487e455622cf034 |
|
BLAKE2b-256 | 4e58f39684a86bac13159f2954f88fbe198adb32a095493e1f9e50417ae33e06 |