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

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

Uploaded Source

Built Distribution

cyberchipped-2.1.4-py3-none-any.whl (5.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: cyberchipped-2.1.4.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

Hashes for cyberchipped-2.1.4.tar.gz
Algorithm Hash digest
SHA256 8f4c26ff01015af8956eaac2305320f2170342c3edf41c81b3e3d3d3451f2dc0
MD5 d1ece2bd95f3971a43fbf1870da67a89
BLAKE2b-256 8fa64dab9ea05b3c7d286f5806f5c59c7dfe41a92effe12898d2bea8742478d6

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for cyberchipped-2.1.4-py3-none-any.whl
Algorithm Hash digest
SHA256 0fbd91786e85485e9869a14a17fc5990b7ed6e6d2d8205b5aec721640b307a13
MD5 25ab29b1816190122db294b30dfe2bd3
BLAKE2b-256 fa86555410ef36fb6c7a609214bdf4fa7d550717483f16297101580aa7b53c3c

See more details on using hashes here.

Supported by

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