Convert your Dify app's API to OpenAI compatible API
This extension converts your Dify app's API to OpenAI compatible API.
Press the Add Endpoint Button
Endpoint creation is done by clicking the "+" mark next to the endpoint of [Dify] ⇒ [Plugins] ⇒ [OpenAI Compatible Dify App].
Configure the Endpoint
Set the "Endpoint Name", "API Key", "App (Dify App)", and "Memory Mode".
The only supported endpoint is Chat Completions. Endpoints like /models and /embeddings are not supported.
The API key set in [Dify] ⇒ [Plugins] ⇒ [OpenAI Compatible Dify App].
In the OpenAI Compatible Dify App, specifying the model is not required; it will be ignored even if specified. Additionally, the model in the response when calling the Dify app through the OpenAI Compatible Dify App will always respond with gpt-3.5-turbo.
In the OpenAI Compatible Dify App, the actual endpoints provided per application are the endpoints created in the plugin settings. Individual Chat Completions endpoints will be created for each Dify app. The settings can be done from [Dify] ⇒ [Plugins] ⇒ [OpenAI Compatible Dify App]. To ensure the endpoints for each app are unique, the URLs will include a hash.
App 1: http:///e/c0odrljwgijfqlgl/chat/completions
App 2: http:///e/a7tags9tjz4d4e4o/chat/completions