An open API service indexing awesome lists of open source software.

https://github.com/genocs/openai-asyncstreaming

A nodejs server based on express that allows to stream data coming from OpenAI
https://github.com/genocs/openai-asyncstreaming

Last synced: 12 months ago
JSON representation

A nodejs server based on express that allows to stream data coming from OpenAI

Awesome Lists containing this project

README

          

# openai-asyncstreaming
A nodejs server based on express that allows to stream data coming from OpenAI

## How to use stream for an API call

This is a simple example of how to use the stream API to make a call to the API.

## How to build the project

To build the project, you can run the following command:

```bash
# Install dependencies
npm install

# Build and run the project
npm run start
```

## How to build with Docker

To build the project with Docker, you can run the following command:

```bash
# Build the Docker image
docker build -t genocs/OpenAIStream:1.0.0 -t genocs/OpenAIStream:latest .

# Push the Docker image to Docker Hub
docker push genocs/OpenAIStream:1.0.0
docker push genocs/OpenAIStream:latest

# Run the Docker container
docker run -p 3000:3000 genocs/OpenAIStream:latest -name OpenAIStream -d .
```