diff --git a/frontend/src/locale/en_US.json b/frontend/src/locale/en_US.json index f5e03f88d..9f7038870 100644 --- a/frontend/src/locale/en_US.json +++ b/frontend/src/locale/en_US.json @@ -969,7 +969,7 @@ "request": { "description": "Session information, including data required to create a session" }, - "description": "This interface sends a question to the large model and initiates a conversation. Supports two streaming call methods: SSE and WebSocket.", + "description": "This interface sends a question to the large model and initiates a conversation. Supports streaming call methods: SSE.", "parameters": { "tenantId": { "description": "The tenant's unique identifier" diff --git a/frontend/src/locale/zh_CN.json b/frontend/src/locale/zh_CN.json index f177659a3..e45dd8de6 100644 --- a/frontend/src/locale/zh_CN.json +++ b/frontend/src/locale/zh_CN.json @@ -969,7 +969,7 @@ "request": { "description": "会话信息,包含创建会话所需的数据" }, - "description": "该接口向大模型发送一个问题信息,并开启一个对话。支持 SSE 和 Websocket 两种流式调用方式。", + "description": "该接口向大模型发送一个问题信息,并开启一个对话。支持 SSE 流式调用方式。", "parameters": { "tenantId": { "description": "租户的唯一标识符" diff --git a/frontend/src/pages/appDetail/overview/apiDocument.tsx b/frontend/src/pages/appDetail/overview/apiDocument.tsx index 3dd3d13b7..9a08d5455 100644 --- a/frontend/src/pages/appDetail/overview/apiDocument.tsx +++ b/frontend/src/pages/appDetail/overview/apiDocument.tsx @@ -51,10 +51,6 @@ const DocumentDrawer = ({ drawerOpen, url, setDrawerOpen }) => { const [tabsKey, setTabsKey] = useState('1'); const [oldTabsKey, setOldTabsKey] = useState('1'); const documentRef = useRef(null); - let websocketUrl = [ - '/api/app/v1/tenants/{tenantId}/chats/apps/{appId}', - '/api/app/v1/chat', - ]; let oldWebsocketUrl = [ '/agent/v1/api/{tenant_id}/app_chat', '/agent/v1/api/{tenant_id}/ws', @@ -824,16 +820,6 @@ const DocumentDrawer = ({ drawerOpen, url, setDrawerOpen }) => { className='content-description' dangerouslySetInnerHTML={{ __html: markedProcess(tranlateCode(item.content)) }} > - {websocketUrl.includes(item.url) && ( -
- -
- )} {oldWebsocketUrl.includes(item.url) && (
{
- +
{/* 删除弹窗 */} diff --git a/frontend/src/pages/appDetail/overview/public-card.tsx b/frontend/src/pages/appDetail/overview/public-card.tsx index 7780bfcdb..7223fbaa0 100644 --- a/frontend/src/pages/appDetail/overview/public-card.tsx +++ b/frontend/src/pages/appDetail/overview/public-card.tsx @@ -57,7 +57,7 @@ const PublicCard = ({ type, url, detail, auth = false }) => { return (
- {url ? ( + {url !== null ? (
{type === 'URL' ? (