| </Col> | </Col> | ||||
| <Col sticky> | <Col sticky> | ||||
| ### Request Example | ### Request Example | ||||
| <CodeGroup title="Request" tag="POST" label="/completion-messages/:task_id/stop" targetCode={`curl -X POST 'https://cloud.dify.ai/v1/completion-messages/:task_id/stop' \\\n-H 'Authorization: Bearer {api_key}' \\\n-H 'Content-Type: application/json' \\\n--data-raw '{ "user": "abc-123"}`}> | |||||
| <CodeGroup title="Request" tag="POST" label="/completion-messages/:task_id/stop" targetCode={`curl -X POST 'https://cloud.dify.ai/v1/completion-messages/:task_id/stop' \\\n-H 'Authorization: Bearer {api_key}' \\\n-H 'Content-Type: application/json' \\\n--data-raw '{ "user": "abc-123"}'`}> | |||||
| ```bash {{ title: 'cURL' }} | ```bash {{ title: 'cURL' }} | ||||
| curl -X POST 'https://cloud.dify.ai/v1/completion-messages/:task_id/stop' \ | curl -X POST 'https://cloud.dify.ai/v1/completion-messages/:task_id/stop' \ | ||||
| -H 'Authorization: Bearer {api_key}' \ | -H 'Authorization: Bearer {api_key}' \ | ||||
| ``` | ``` | ||||
| </CodeGroup> | </CodeGroup> | ||||
| </Col> | </Col> | ||||
| </Row> | |||||
| </Row> |
| - `result` (string) 固定返回 success | - `result` (string) 固定返回 success | ||||
| </Col> | </Col> | ||||
| <Col sticky> | <Col sticky> | ||||
| <CodeGroup title="Request" tag="POST" label="/completion-messages/:task_id/stop" targetCode={`curl -X POST 'https://cloud.dify.ai/v1/completion-messages/:task_id/stop' \\\n-H 'Authorization: Bearer {api_key}' \\\n-H 'Content-Type: application/json' \\\n--data-raw '{ "user": "abc-123"}`}> | |||||
| <CodeGroup title="Request" tag="POST" label="/completion-messages/:task_id/stop" targetCode={`curl -X POST 'https://cloud.dify.ai/v1/completion-messages/:task_id/stop' \\\n-H 'Authorization: Bearer {api_key}' \\\n-H 'Content-Type: application/json' \\\n--data-raw '{ "user": "abc-123"}'`}> | |||||
| ```bash {{ title: 'cURL' }} | ```bash {{ title: 'cURL' }} | ||||
| curl -X POST 'https://cloud.dify.ai/v1/completion-messages/:task_id/stop' \ | curl -X POST 'https://cloud.dify.ai/v1/completion-messages/:task_id/stop' \ | ||||
| -H 'Authorization: Bearer {api_key}' \ | -H 'Authorization: Bearer {api_key}' \ | ||||
| "max_length": 48, | "max_length": 48, | ||||
| "default": "" | "default": "" | ||||
| } | } | ||||
| } | |||||
| }, | |||||
| { | { | ||||
| // ... | // ... | ||||
| } | } |
| </Col> | </Col> | ||||
| <Col sticky> | <Col sticky> | ||||
| <CodeGroup title="Request" tag="POST" abel="/chat-messages" targetCode={`curl -X POST '${props.appDetail.api_base_url}/chat-messages' \\\n--header 'Authorization: Bearer {api_key}' \\\n--header 'Content-Type: application/json' \\\n--data-raw '{\n "inputs": ${JSON.stringify(props.inputs)},\n "query": "What are the specs of the iPhone 13 Pro Max?",\n "response_mode": "streaming",\n "conversation_id": "",\n "user": "abc-123"\n "files": [\n {\n "type": "images",\n "transfer_method": "remote_url"\n "url": "https://cloud.dify.ai/logo/logo-site.png"\n }\n ]\n},'`}> | |||||
| <CodeGroup title="Request" tag="POST" abel="/chat-messages" targetCode={`curl -X POST '${props.appDetail.api_base_url}/chat-messages' \\\n--header 'Authorization: Bearer {api_key}' \\\n--header 'Content-Type: application/json' \\\n--data-raw '{\n "inputs": ${JSON.stringify(props.inputs)},\n "query": "What are the specs of the iPhone 13 Pro Max?",\n "response_mode": "streaming",\n "conversation_id": "",\n "user": "abc-123",\n "files": [\n {\n "type": "images",\n "transfer_method": "remote_url",\n "url": "https://cloud.dify.ai/logo/logo-site.png"\n }\n ]\n}'`}> | |||||
| ```bash {{ title: 'cURL' }} | ```bash {{ title: 'cURL' }} | ||||
| curl -X POST '${props.appDetail.api_base_url}/chat-messages' \ | curl -X POST '${props.appDetail.api_base_url}/chat-messages' \ | ||||
| </Col> | </Col> | ||||
| <Col sticky> | <Col sticky> | ||||
| ### Request Example | ### Request Example | ||||
| <CodeGroup title="Request" tag="POST" label="/chat-messages/:task_id/stop" targetCode={`curl -X POST 'https://cloud.dify.ai/v1/chat-messages/:task_id/stop' \\\n-H 'Authorization: Bearer {api_key}' \\\n-H 'Content-Type: application/json' \\\n--data-raw '{ "user": "abc-123"}`}> | |||||
| <CodeGroup title="Request" tag="POST" label="/chat-messages/:task_id/stop" targetCode={`curl -X POST 'https://cloud.dify.ai/v1/chat-messages/:task_id/stop' \\\n-H 'Authorization: Bearer {api_key}' \\\n-H 'Content-Type: application/json' \\\n--data-raw '{"user": "abc-123"}'`}> | |||||
| ```bash {{ title: 'cURL' }} | ```bash {{ title: 'cURL' }} | ||||
| curl -X POST 'https://cloud.dify.ai/v1/chat-messages/:task_id/stop' \ | curl -X POST 'https://cloud.dify.ai/v1/chat-messages/:task_id/stop' \ | ||||
| -H 'Authorization: Bearer {api_key}' \ | -H 'Authorization: Bearer {api_key}' \ | ||||
| </CodeGroup> | </CodeGroup> | ||||
| </Col> | </Col> | ||||
| </Row> | </Row> | ||||
| - `result` (string) 固定返回 success | - `result` (string) 固定返回 success | ||||
| </Col> | </Col> | ||||
| <Col sticky> | <Col sticky> | ||||
| <CodeGroup title="Request" tag="POST" label="/chat-messages/:task_id/stop" targetCode={`curl -X POST 'https://cloud.dify.ai/v1/chat-messages/:task_id/stop' \\\n-H 'Authorization: Bearer {api_key}' \\\n-H 'Content-Type: application/json' \\\n--data-raw '{ "user": "abc-123"}`}> | |||||
| <CodeGroup title="Request" tag="POST" label="/chat-messages/:task_id/stop" targetCode={`curl -X POST 'https://cloud.dify.ai/v1/chat-messages/:task_id/stop' \\\n-H 'Authorization: Bearer {api_key}' \\\n-H 'Content-Type: application/json' \\\n--data-raw '{ "user": "abc-123"}'`}> | |||||
| ```bash {{ title: 'cURL' }} | ```bash {{ title: 'cURL' }} | ||||
| curl -X POST 'https://cloud.dify.ai/v1/chat-messages/:task_id/stop' \ | curl -X POST 'https://cloud.dify.ai/v1/chat-messages/:task_id/stop' \ | ||||
| -H 'Authorization: Bearer {api_key}' \ | -H 'Authorization: Bearer {api_key}' \ | ||||
| "max_length": 48, | "max_length": 48, | ||||
| "default": "" | "default": "" | ||||
| } | } | ||||
| } | |||||
| }, | |||||
| { | { | ||||
| // ... | // ... | ||||
| } | } |