Dify2OpenAI icon indicating copy to clipboard operation
Dify2OpenAI copied to clipboard

一个将 Dify 应用程序转换为 OpenAI API 接口的网关服务,使您可以使用 OpenAI API 兼容的方式访问 Dify 的 LLM、知识库、工具和工作流程。

Results 13 Dify2OpenAI issues
Sort by recently updated
recently updated
newest added

比如下面的: curl -X POST 'http://xxx.xxx.xxx.xxx/v1/chat-messages' \ --header 'Authorization: Bearer {api_key}' \ --header 'Content-Type: application/json' \ --data-raw '{ "inputs": {}, "query": "What are the specs of the iPhone 13 Pro Max?",...

我现在用的vercel部署的,最大免费函数执行时间,太短了。发的文本一长,就报错。 希望能加上docker镜像,方便其他平台一件部署。

curl http://localhost:3099/v1/chat/completions \ -H "Content-Type: application/json" \ -H "Authorization: Bearer http://localhost:3099/v1|app-W3DmVjJrbcyHO12D9s8fGGRFa|Chat" \ -X POST \ -d '{ "model": "dify", "stream": true, "messages": [ { "role": "system", "content": "You are a...

请求示例 curl --location --request POST 'http://192.168.25.17:3099/v1/chat/completions' \ --header 'Authorization: Bearer app-xx' \ --header 'Content-Type: application/json' \ --data-raw '{ "model": "dify|Chat|http://192.168.25.17/v1/", "stream": false, "messages": [ { "role": "system", "content": "“有问题”或“没问题” You...

最简单的聊天助手挂个知识库,在dify里问答都是根据知识库来的,用dify2openai转换后调用就好像不知道有知识库一样。

workflow传递参数是怎么传递的,有没有示例,POSTMAN也调不通

add Dockerfile; add API_USER to config; support json content in workflowHandler; fix stream in workflowHandler;