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
cyberchipped-2.1.2.tar.gz
(5.3 kB
view hashes)
Built Distribution
Close
Hashes for cyberchipped-2.1.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 77121bdf03ac28586aed2fad1e55f2cd6a5a3aa2bfb59f0a53e01ea28f05e905 |
|
MD5 | c47bccc47695ce2e13fc0a8e3bc3b125 |
|
BLAKE2b-256 | 138385fb0a9bd5ba0033fe6c82d0b6120b8bcc7d7db03479cfb6f97d1842098e |