https://github.com/truemagic-coder/cyberchipped
Build AI Apps Fast
https://github.com/truemagic-coder/cyberchipped
ai-agent ai-agents openai-assistants
Last synced: about 1 month ago
JSON representation
Build AI Apps Fast
- Host: GitHub
- URL: https://github.com/truemagic-coder/cyberchipped
- Owner: truemagic-coder
- License: mit
- Created: 2023-12-04T02:27:56.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-11-20T08:37:33.000Z (6 months ago)
- Last Synced: 2024-11-20T09:28:14.322Z (6 months ago)
- Topics: ai-agent, ai-agents, openai-assistants
- Language: Python
- Homepage: https://cyberchipped.com
- Size: 3.76 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# CyberChipped
[](https://pypi.org/project/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:
```bash
pip install cyberchipped
```## Usage
Here's a basic example of how to use CyberChipped:
```python
from cyberchipped import AI, SQLiteDatabaseasync 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.