From a430284aa21e3ae1f0d5654e55b2ad2852519cc2 Mon Sep 17 00:00:00 2001 From: wwf <yearningwang@iqtogether.com> Date: 星期三, 04 六月 2025 15:17:49 +0800 Subject: [PATCH] 初始化 --- app/components/develop/template/template.ja.mdx | 128 +----------------------------------------- 1 files changed, 3 insertions(+), 125 deletions(-) diff --git a/app/components/develop/template/template.ja.mdx b/app/components/develop/template/template.ja.mdx index 5061792..4670404 100644 --- a/app/components/develop/template/template.ja.mdx +++ b/app/components/develop/template/template.ja.mdx @@ -192,8 +192,8 @@ data: {"event": "message", "message_id": "5ad4cb98-f0c7-4085-b384-88c403be6290", "answer": "'m", "created_at": 1679586595} data: {"event": "message", "message_id": "5ad4cb98-f0c7-4085-b384-88c403be6290", "answer": " glad", "created_at": 1679586595} data: {"event": "message", "message_id": "5ad4cb98-f0c7-4085-b384-88c403be6290", "answer": " to", "created_at": 1679586595} - data: {"event": "message", "message_id" : "5ad4cb98-f0c7-4085-b384-88c403be6290", "answer": " meet", "created_at": 1679586595} - data: {"event": "message", "message_id" : "5ad4cb98-f0c7-4085-b384-88c403be6290", "answer": " you", "created_at": 1679586595} + data: {"event": "message", "message_id": : "5ad4cb98-f0c7-4085-b384-88c403be6290", "answer": " meet", "created_at": 1679586595} + data: {"event": "message", "message_id": : "5ad4cb98-f0c7-4085-b384-88c403be6290", "answer": " you", "created_at": 1679586595} data: {"event": "message_end", "id": "5e52ce04-874b-4d27-9045-b3bc80def685", "metadata": {"usage": {"prompt_tokens": 1033, "prompt_unit_price": "0.001", "prompt_price_unit": "0.001", "prompt_price": "0.0010330", "completion_tokens": 135, "completion_unit_price": "0.002", "completion_price_unit": "0.001", "completion_price": "0.0002700", "total_tokens": 1168, "total_price": "0.0013030", "currency": "USD", "latency": 1.381760165997548}}} data: {"event": "tts_message", "conversation_id": "23dd85f3-1a41-4ea0-b7a9-062734ccfaf9", "message_id": "a8bdc41c-13b2-4c18-bfd9-054b9803038c", "created_at": 1721205487, "task_id": "3bf8a0bb-e73b-4690-9e66-4e429bad8ee7", "audio": "qqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqq"} data: {"event": "tts_message_end", "conversation_id": "23dd85f3-1a41-4ea0-b7a9-062734ccfaf9", "message_id": "a8bdc41c-13b2-4c18-bfd9-054b9803038c", "created_at": 1721205487, "task_id": "3bf8a0bb-e73b-4690-9e66-4e429bad8ee7", "audio": ""} @@ -382,69 +382,6 @@ --- <Heading - url='/app/feedbacks' - method='GET' - title='銈€儣銉伄銉°儍銈汇兗銈搞伄銆屻亜銇勩伃銆嶃仺銉曘偅銉笺儔銉愩儍銈倰鍙栧緱' - name='#app-feedbacks' -/> -<Row> - <Col> - 銈€儣銉伄銈ㄣ兂銉夈儲銉笺偠銉笺亱銈夈伄銉曘偅銉笺儔銉愩儍銈倓銆屻亜銇勩伃銆嶃倰鍙栧緱銇椼伨銇欍�� - - ### 銈偍銉� - <Properties> - <Property name='page' type='string' key='page'> - 锛堜换鎰忥級銉氥兗銈哥暘鍙枫�傘儑銉曘偐銉儓鍊わ細1 - </Property> - </Properties> - - <Properties> - <Property name='limit' type='string' key='limit'> - 锛堜换鎰忥級1銉氥兗銈搞亗銇熴倞銇欢鏁般�傘儑銉曘偐銉儓鍊わ細20 - </Property> - </Properties> - - ### 銉偣銉濄兂銈� - - `data` (銉偣銉�) 銇撱伄銈€儣銉伄銆屻亜銇勩伃銆嶃仺銉曘偅銉笺儔銉愩儍銈伄涓�瑕с倰杩斻仐銇俱仚銆� - </Col> - <Col sticky> - - <CodeGroup title="Request" tag="GET" label="/app/feedbacks" targetCode={`curl -X GET '${props.appDetail.api_base_url}/app/feedbacks?page=1&limit=20'`}> - - ```bash {{ title: 'cURL' }} - curl -X GET '${props.appDetail.api_base_url}/app/feedbacks?page=1&limit=20' \ - --header 'Authorization: Bearer {api_key}' \ - --header 'Content-Type: application/json' - ``` - - </CodeGroup> - - <CodeGroup title="Response"> - ```json {{ title: 'Response' }} - { - "data": [ - { - "id": "8c0fbed8-e2f9-49ff-9f0e-15a35bdd0e25", - "app_id": "f252d396-fe48-450e-94ec-e184218e7346", - "conversation_id": "2397604b-9deb-430e-b285-4726e51fd62d", - "message_id": "709c0b0f-0a96-4a4e-91a4-ec0889937b11", - "rating": "like", - "content": "message feedback information-3", - "from_source": "user", - "from_end_user_id": "74286412-9a1a-42c1-929c-01edb1d381d5", - "from_account_id": null, - "created_at": "2025-04-24T09:24:38", - "updated_at": "2025-04-24T09:24:38" - } - ] - } - ``` - </CodeGroup> - </Col> -</Row> ---- - -<Heading url='/text-to-audio' method='POST' title='銉嗐偔銈广儓銇嬨倝闊冲0' @@ -457,7 +394,7 @@ ### 銉偗銈ㄣ偣銉堛儨銉囥偅 <Properties> - <Property name='message_id' type='str' key='message_id'> + <Property name='message_id' type='str' key='text'> Dify銇岀敓鎴愩仐銇熴儐銈偣銉堛儭銉冦偦銉笺偢銇牬鍚堛�佺敓鎴愩仌銈屻仧message-id銈掔洿鎺ユ浮銇欍仩銇戙仹銇欍�傘儛銉冦偗銈ㄣ兂銉夈伅message-id銈掍娇鐢ㄣ仐銇﹀蹇溿仚銈嬨偝銉炽儐銉炽儎銈掓绱€仐銆侀煶澹版儏鍫便倰鐩存帴鍚堟垚銇椼伨銇欍�俶essage_id銇╰ext銇浮鏂广亴鍚屾檪銇彁渚涖仌銈屻仧鍫村悎銆乵essage_id銇屽劒鍏堛仌銈屻伨銇欍�� </Property> <Property name='text' type='str' key='text'> @@ -645,62 +582,3 @@ </CodeGroup> </Col> </Row> ---- - -<Heading - url='/site' - method='GET' - title='銈€儣銉伄WebApp瑷畾銈掑彇寰�' - name='#site' -/> -<Row> - <Col> - 銈€儣銉伄WebApp瑷畾銈掑彇寰椼仚銈嬨仧銈併伀浣跨敤銇椼伨銇欍�� - ### 銉偣銉濄兂銈� - - `title` (string) WebApp鍚� - - `chat_color_theme` (string) 銉併儯銉冦儓銇壊銉嗐兗銉炪��16閫叉暟褰㈠紡 - - `chat_color_theme_inverted` (bool) 銉併儯銉冦儓銇壊銉嗐兗銉炪倰鍙嶈虎銇欍倠銇嬨仼銇嗐亱 - - `icon_type` (string) 銈€偆銈炽兂銈裤偆銉椼�乣emoji`-绲垫枃瀛椼�乣image`-鐢诲儚 - - `icon` (string) 銈€偆銈炽兂銆俙emoji`銈裤偆銉椼伄鍫村悎銇档鏂囧瓧銆乣image`銈裤偆銉椼伄鍫村悎銇敾鍍廢RL - - `icon_background` (string) 16閫叉暟褰㈠紡銇儗鏅壊 - - `icon_url` (string) 銈€偆銈炽兂銇甎RL - - `description` (string) 瑾槑 - - `copyright` (string) 钁椾綔妯╂儏鍫� - - `privacy_policy` (string) 銉椼儵銈ゃ儛銈枫兗銉濄儶銈枫兗銇儶銉炽偗 - - `custom_disclaimer` (string) 銈偣銈裤儬鍏嶈铂浜嬮爡 - - `default_language` (string) 銉囥儠銈┿儷銉堣█瑾� - - `show_workflow_steps` (bool) 銉兗銈儠銉兗銇┏绱般倰琛ㄧず銇欍倠銇嬨仼銇嗐亱 - - `use_icon_as_answer_icon` (bool) WebApp銇偄銈ゃ偝銉炽倰銉併儯銉冦儓鍐呫伄馃銇疆銇嶆彌銇堛倠銇嬨仼銇嗐亱 - </Col> - <Col> - <CodeGroup title="Request" tag="POST" label="/meta" targetCode={`curl -X GET '${props.appDetail.api_base_url}/site' \\\n-H 'Authorization: Bearer {api_key}'`}> - ```bash {{ title: 'cURL' }} - curl -X GET '${props.appDetail.api_base_url}/site' \ - -H 'Authorization: Bearer {api_key}' - ``` - - </CodeGroup> - - <CodeGroup title="Response"> - ```json {{ title: 'Response' }} - { - "title": "My App", - "chat_color_theme": "#ff4a4a", - "chat_color_theme_inverted": false, - "icon_type": "emoji", - "icon": "馃槃", - "icon_background": "#FFEAD5", - "icon_url": null, - "description": "This is my app.", - "copyright": "all rights reserved", - "privacy_policy": "", - "custom_disclaimer": "All generated by AI", - "default_language": "en-US", - "show_workflow_steps": false, - "use_icon_as_answer_icon": false, - } - ``` - </CodeGroup> - </Col> -</Row> -___ -- Gitblit v1.8.0