Skip to main content

Build AI Assistants Fast

Project description

CyberChipped

PyPI - Version GitHub Workflow Status (with event) Codecov

CyberChipped Logo

Introduction

CyberChipped powers the best AI Companion - CometHeart!

In a few lines of code build a conversational AI Assistant!

Install

pip install cyberchipped

OpenAI Assistant

from cyberchipped.ai import SQLiteDatabase, AI

database = SQLiteDatabase("sqlite.db")

@app.post("/conversation/{user_id}")
async def conversation_endpoint(user_id: str, audio_file: UploadFile = File(...)):
    async with AI(
        api_key=os.getenv("OPENAI_API_KEY"),
        name="CometHeart AI Simple",
        instructions="You are CometHeart an AI voice assistant - you answer questions and help with tasks. You keep your responses brief and tailor them for speech.",
        database=database
    ) as ai:
        audio_generator = await ai.conversation(user_id, audio_file)

        return StreamingResponse(
            content=audio_generator,
            media_type="audio/x-aac",
        )

Database

CyberChipped requires a database to track and manage OpenAI Assistant threads across runs.

You can use MongoDB or SQLite.

Platform Support

Mac and Linux

Run tests

poetry run pytest

Requirements

Python >= 3.12

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-1.1.0.tar.gz (5.0 kB view hashes)

Uploaded Source

Built Distribution

cyberchipped-1.1.0-py3-none-any.whl (5.6 kB view hashes)

Uploaded Python 3

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