Skip to main content

Build AI Assistants Fast

Project description

CyberChipped

PyPI - Version

CyberChipped Logo

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

This version

2.2.0

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.2.0.tar.gz (5.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

cyberchipped-2.2.0-py3-none-any.whl (6.3 kB view details)

Uploaded Python 3

File details

Details for the file cyberchipped-2.2.0.tar.gz.

File metadata

  • Download URL: cyberchipped-2.2.0.tar.gz
  • Upload date:
  • Size: 5.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.9.21

File hashes

Hashes for cyberchipped-2.2.0.tar.gz
Algorithm Hash digest
SHA256 1d7f9b029d7b2107a97bcbc30574b8de4000118d1c48f5f1f68b19e7fc00cc95
MD5 8df2e7e81ce1b6a7cbb70f901f6a53d2
BLAKE2b-256 1db08078ecdb324ba3ee14a36aa9766aef6a5da84269dc7b05c8edc2193dbe1c

See more details on using hashes here.

File details

Details for the file cyberchipped-2.2.0-py3-none-any.whl.

File metadata

  • Download URL: cyberchipped-2.2.0-py3-none-any.whl
  • Upload date:
  • Size: 6.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.9.21

File hashes

Hashes for cyberchipped-2.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 933a5a0dcd48506c47389c05037c0024ce422b0cf6e00cc97705ed91a9b9b533
MD5 c0bb2c28fdd4cf110a1eedbaf2d1a0c8
BLAKE2b-256 592c51bc3cc5fa170dd1d7919cd3c37634b924efffbb6774913f40ab5e461be9

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page