Dify2OpenAI icon indicating copy to clipboard operation
Dify2OpenAI copied to clipboard

dify中chatflow中的inputs变量如何传递

Open johnniev5 opened this issue 6 months ago • 2 comments

比如下面的: 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?", "response_mode": "streaming", "conversation_id": "", "user": "abc-123" }'

放在下面方法二中,如何传递: curl http://xxx.xxx.xxx.xxx:xxx/v1/chat/completions
-H "Content-Type: application/json"
-H "Authorization: Bearer app-xxxx"
-X POST
-d '{
"model": "dify|Chat|https://cloud.dify.ai/v1", "stream": true, "messages": [ { "role": "system", "content": "You are a helpful assistant." }, { "role": "user", "content": "你好" } ] }'

johnniev5 avatar May 30 '25 09:05 johnniev5

同问,用户输入的变量如何传递呢?

xiaoqiang1999 avatar Jun 26 '25 09:06 xiaoqiang1999

同问,调不通啊

kaikee-snow-star avatar Jul 11 '25 01:07 kaikee-snow-star