Skip to content

derouter/provider-openai

Repository files navigation

DeRouter OpenAI Provider

Build

A DeRouter Provider module conforming to the OpenAI protocol.

It proxies requests incoming from the DeRouter network to a configured OpenAI-compatible URL. The module connects to a running DeRouter node. See config.example.jsonc for example configuration.

👷 Development

npm run build
npm start -- -c./config.json
# Run with nodemon.
npm run dev -- -- -- -c./config.json

🚀 Releases

The module may be compiled into a single binary with NodeJS's SEA. You can download a binary from the Releases page, or build it manually.

Linux

./scripts/compile/linux.sh
./dist/bin/output -c./config.json

Windows

./scripts/compile/win32.ps1
./dist/bin/output.exe -c ./config.json

MacOS

./scripts/compile/darwin.sh
./dist/bin/output -c./config.json

About

DeRouter provider which proxies OpenAI requests to an URL

Topics

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors