Skip to main content

Streaming enabled Assistants API

Project description

streaming_assistants

The official OpenAI Assistants API does not yet support streaming (although this functionality has been hinted at since launch back in November). Streaming is critical for a large subset of genai use cases and there has been significant feedback that it's the major blocker for addption of the Assistants API from many. We decided that we (and our users) couldn't wait so we implemented streaming support in Astra Assistants API.

OpenAI has now added streaming support with streaming runs. This libriary will now mainly be used to streamline support for third partry llm providers. We will continue to support our old streaming messages approach for existing users.

How to use

Install streaming_assistants using your python package manager of choice:

poetry add streaming_assistants

import and patch your client:

from openai import OpenAI
from streaming_assistants import patch

client = patch(OpenAI())

Server

The astra-assistants server code is now open source (Apache2)! Check it out here https://github.com/datastax/astra-assistants-api

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

streaming_assistants-0.16.0.tar.gz (6.4 kB view hashes)

Uploaded Source

Built Distribution

streaming_assistants-0.16.0-py3-none-any.whl (6.9 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