mirror of
https://github.com/infiniflow/ragflow.git
synced 2025-12-08 20:42:30 +08:00
### What problem does this PR solve? fix: the site domain name in the Chat Bot API is hardcoded. #776 ### Type of change - [x] Bug Fix (non-breaking change which fixes an issue)
This commit is contained in:
@ -1,5 +1,4 @@
|
||||
import LineChart from '@/components/line-chart';
|
||||
import { Domain } from '@/constants/common';
|
||||
import { useSetModalState, useTranslate } from '@/hooks/commonHooks';
|
||||
import { IModalProps } from '@/interfaces/common';
|
||||
import { IDialog, IStats } from '@/interfaces/database/chat';
|
||||
@ -81,8 +80,7 @@ const ChatOverviewModal = ({
|
||||
<Flex gap={8} vertical>
|
||||
{t('serviceApiEndpoint')}
|
||||
<Paragraph copyable className={styles.linkText}>
|
||||
https://
|
||||
{location.hostname === Domain ? Domain : '<YOUR_MACHINE_IP>'}
|
||||
{location.origin}
|
||||
/v1/api/
|
||||
</Paragraph>
|
||||
</Flex>
|
||||
|
||||
Reference in New Issue
Block a user