Bladeren bron

fix: api doc update conversation list api to real response (#548)

Joel 1 jaar geleden
bovenliggende
commit
b91e226063

+ 0 - 1
web/app/components/develop/template/template.en.mdx

@@ -138,7 +138,6 @@ For high-quality text generation, such as articles, summaries, and translations,
           "avatar_url": "https://assets.protocol.chat/avatars/frank.jpg",
           "display_name": null,
           "conversation_id": "xgQQXg3hrtjh7AvZ",
-          "last_active_at": 705103200,
           "created_at": 692233200
         },
         {

+ 0 - 1
web/app/components/develop/template/template.zh.mdx

@@ -138,7 +138,6 @@ import { Row, Col, Properties, Property, Heading, SubProperty } from '../md.tsx'
           "avatar_url": "https://assets.protocol.chat/avatars/frank.jpg",
           "display_name": null,
           "conversation_id": "xgQQXg3hrtjh7AvZ",
-          "last_active_at": 705103200,
           "created_at": 692233200
         },
         {

+ 4 - 6
web/app/components/develop/template/template_chat.en.mdx

@@ -137,12 +137,11 @@ For versatile conversational apps using a Q&A format, call the chat-messages API
       "data": [
         {
           "id": "WAz8eIbvDR60rouK",
-          "username": "FrankMcCallister",
-          "phone_number": "1-800-759-3000",
-          "avatar_url": "https://assets.protocol.chat/avatars/frank.jpg",
-          "display_name": null,
           "conversation_id": "xgQQXg3hrtjh7AvZ",
-          "last_active_at": 705103200,
+          "inputs": {},
+          "query": "...",
+          "answer": "...",
+          "feedback": "like",
           "created_at": 692233200
         },
         {
@@ -208,7 +207,6 @@ For versatile conversational apps using a Q&A format, call the chat-messages API
           "avatar_url": "https://assets.protocol.chat/avatars/frank.jpg",
           "display_name": null,
           "conversation_id": "xgQQXg3hrtjh7AvZ",
-          "last_active_at": 705103200,
           "created_at": 692233200
         },
         {

+ 4 - 6
web/app/components/develop/template/template_chat.zh.mdx

@@ -142,7 +142,6 @@ import { Row, Col, Properties, Property, Heading, SubProperty } from '../md.tsx'
           "avatar_url": "https://assets.protocol.chat/avatars/frank.jpg",
           "display_name": null,
           "conversation_id": "xgQQXg3hrtjh7AvZ",
-          "last_active_at": 705103200,
           "created_at": 692233200
         },
         {
@@ -203,12 +202,11 @@ import { Row, Col, Properties, Property, Heading, SubProperty } from '../md.tsx'
       "data": [
         {
           "id": "WAz8eIbvDR60rouK",
-          "username": "FrankMcCallister",
-          "phone_number": "1-800-759-3000",
-          "avatar_url": "https://assets.protocol.chat/avatars/frank.jpg",
-          "display_name": null,
           "conversation_id": "xgQQXg3hrtjh7AvZ",
-          "last_active_at": 705103200,
+          "inputs": {},
+          "query": "...",
+          "answer": "...",
+          "feedback": "like",
           "created_at": 692233200
         },
         {