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
- Host: GitHub
- URL: https://github.com/genocs/openai-asyncstreaming
- Owner: Genocs
- License: mit
- Created: 2024-03-22T17:43:06.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-03-22T21:09:54.000Z (over 2 years ago)
- Last Synced: 2025-02-07T10:52:33.007Z (over 1 year ago)
- Language: JavaScript
- Size: 26.4 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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 .
```