Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion frontend/src/locale/en_US.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/locale/zh_CN.json
Original file line number Diff line number Diff line change
Expand Up @@ -969,7 +969,7 @@
"request": {
"description": "会话信息,包含创建会话所需的数据"
},
"description": "该接口向大模型发送一个问题信息,并开启一个对话。支持 SSE 和 Websocket 两种流式调用方式。",
"description": "该接口向大模型发送一个问题信息,并开启一个对话。支持 SSE 流式调用方式。",
"parameters": {
"tenantId": {
"description": "租户的唯一标识符"
Expand Down
14 changes: 0 additions & 14 deletions frontend/src/pages/appDetail/overview/apiDocument.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -51,10 +51,6 @@ const DocumentDrawer = ({ drawerOpen, url, setDrawerOpen }) => {
const [tabsKey, setTabsKey] = useState('1');
const [oldTabsKey, setOldTabsKey] = useState('1');
const documentRef = useRef<any>(null);
let websocketUrl = [
'<font color=#d0cdcd>/api/app/v1/tenants/{tenantId}/chats/apps/{appId}</font>',
'<font color=#d0cdcd>/api/app/v1/chat</font>',
];
let oldWebsocketUrl = [
'<font color=#d0cdcd>/agent/v1/api/{tenant_id}/app_chat</font>',
'<font color=#d0cdcd>/agent/v1/api/{tenant_id}/ws</font>',
Expand Down Expand Up @@ -824,16 +820,6 @@ const DocumentDrawer = ({ drawerOpen, url, setDrawerOpen }) => {
className='content-description'
dangerouslySetInnerHTML={{ __html: markedProcess(tranlateCode(item.content)) }}
></div>
{websocketUrl.includes(item.url) && (
<div>
<Tabs
defaultActiveKey='1'
onChange={onChangeTabs}
items={items}
activeKey={tabsKey}
/>
</div>
)}
{oldWebsocketUrl.includes(item.url) && (
<div>
<Tabs
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/pages/appDetail/overview/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ const AppOverview: React.FC = () => {
</div>
<div className='detail-card'>
<PublicCard url={detail.chatUrl} type='URL' detail={detail} />
<PublicCard url={`/${process.env.PACKAGE_MODE === 'spa' ? `agent/v1/api/${tenantId}` : 'api/jober'}`} type='API' auth={readOnly} detail={detail} />
<PublicCard url={`${process.env.PACKAGE_MODE === 'spa' ? '' : '/api/jober'}`} type='API' auth={readOnly} detail={detail} />
</div>
</div>
{/* 删除弹窗 */}
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/pages/appDetail/overview/public-card.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ const PublicCard = ({ type, url, detail, auth = false }) => {

return (
<div className='detail-card-item'>
{url ? (
{url !== null ? (
<div className='item-detail'>
<div className='item-top'>
{type === 'URL' ? (
Expand Down