dify中chatflow中的inputs变量如何传递
比如下面的:
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": "你好"
}
]
}'
同问,用户输入的变量如何传递呢?
同问,调不通啊