rming / dify-openai-apis

OpenAI-compatible APIs for Dify platform services.
20 stars 4 forks source link

English | 中文

dify-openai-apis

License

Description

OpenAI-compatible APIs for Dify platform services.
This crate provides a set of APIs that are compatible with OpenAI's GPT-3 API, and can be used to interact with Dify's platform services and tools.

Note: The app currently does not support OpenAI's Legacy Completions API. Please use the Chat Completion API instead.

Config

Configurations can be set via .env file or environment variables:

Note:

Install

Please download the precompiled binary from : Release page

You can also install it using the cargo command.

# require cargo installed
cargo install dify-openai-apis

Usage

To start the server, run:

# require cargo bin directory in PATH
# export PATH=$HOME/.cargo/bin:$PATH
dify-openai-apis