Plugged in a simple docker container that exposes dify's api as OpenAI compatible API on port 8001. #14046
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Summary
This pull request introduces a Docker container that exposes Dify's API as an OpenAI-compatible API on port 8001. This change enhances interoperability with OpenAI-compatible tools and services by providing an easily accessible API endpoint.
Key Changes
funnyzak/dify2openai:0.0.1
for exposing Dify's API as an OpenAI-compatible API.Motivation
Dependencies
funnyzak/dify2openai:0.0.1
and configure the environment.Environment Variables
DIFY_API_URL
https://api.dify.ai/v1
BOT_TYPE
INPUT_VARIABLE
OUTPUT_VARIABLE
MODELS_NAME
/v1/models
endpoint. The default value isdify
.Fixes
No specific issue was mentioned for this pull request.
Screenshots
Checklist
dev/reformat
(backend) andcd web && npx lint-staged
(frontend) to appease the lint gods.