mirror of
https://git.mirrors.martin98.com/https://github.com/infiniflow/ragflow.git
synced 2025-06-30 17:05:14 +08:00
### What problem does this PR solve? Feat: Move langfuse configuration to api page #6155 ### Type of change - [x] New Feature (non-breaking change which adds functionality)
This commit is contained in:
parent
1cc17eb611
commit
8fca8faa7d
@ -1,4 +1,5 @@
|
|||||||
import { useSetModalState, useTranslate } from '@/hooks/common-hooks';
|
import { useSetModalState, useTranslate } from '@/hooks/common-hooks';
|
||||||
|
import { LangfuseCard } from '@/pages/user-setting/setting-model/langfuse';
|
||||||
import apiDoc from '@parent/docs/references/http_api_reference.md';
|
import apiDoc from '@parent/docs/references/http_api_reference.md';
|
||||||
import MarkdownPreview from '@uiw/react-markdown-preview';
|
import MarkdownPreview from '@uiw/react-markdown-preview';
|
||||||
import { Button, Card, Flex, Space } from 'antd';
|
import { Button, Card, Flex, Space } from 'antd';
|
||||||
@ -28,7 +29,7 @@ const ApiContent = ({
|
|||||||
const { handlePreview } = usePreviewChat(idKey);
|
const { handlePreview } = usePreviewChat(idKey);
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div>
|
<div className="pb-2">
|
||||||
<Flex vertical gap={'middle'}>
|
<Flex vertical gap={'middle'}>
|
||||||
<BackendServiceApi show={showApiKeyModal}></BackendServiceApi>
|
<BackendServiceApi show={showApiKeyModal}></BackendServiceApi>
|
||||||
{!hideChatPreviewCard && (
|
{!hideChatPreviewCard && (
|
||||||
@ -62,6 +63,7 @@ const ApiContent = ({
|
|||||||
hideModal={hideEmbedModal}
|
hideModal={hideEmbedModal}
|
||||||
></EmbedModal>
|
></EmbedModal>
|
||||||
)} */}
|
)} */}
|
||||||
|
<LangfuseCard></LangfuseCard>
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
@ -58,6 +58,7 @@ const MarkdownToc: React.FC<MarkdownTocProps> = ({ content }) => {
|
|||||||
position: 'fixed',
|
position: 'fixed',
|
||||||
right: 20,
|
right: 20,
|
||||||
top: 100,
|
top: 100,
|
||||||
|
bottom: 150,
|
||||||
width: 200,
|
width: 200,
|
||||||
background: '#fff',
|
background: '#fff',
|
||||||
padding: '10px',
|
padding: '10px',
|
||||||
|
@ -50,7 +50,6 @@ import {
|
|||||||
} from './hooks';
|
} from './hooks';
|
||||||
import HunyuanModal from './hunyuan-modal';
|
import HunyuanModal from './hunyuan-modal';
|
||||||
import styles from './index.less';
|
import styles from './index.less';
|
||||||
import { LangfuseCard } from './langfuse';
|
|
||||||
import OllamaModal from './ollama-modal';
|
import OllamaModal from './ollama-modal';
|
||||||
import SparkModal from './spark-modal';
|
import SparkModal from './spark-modal';
|
||||||
import SystemModelSettingModal from './system-model-setting-modal';
|
import SystemModelSettingModal from './system-model-setting-modal';
|
||||||
@ -368,7 +367,6 @@ const UserSettingModel = () => {
|
|||||||
|
|
||||||
return (
|
return (
|
||||||
<section id="xx" className="w-full space-y-6">
|
<section id="xx" className="w-full space-y-6">
|
||||||
<LangfuseCard></LangfuseCard>
|
|
||||||
<Spin spinning={loading}>
|
<Spin spinning={loading}>
|
||||||
<section className={styles.modelContainer}>
|
<section className={styles.modelContainer}>
|
||||||
<SettingTitle
|
<SettingTitle
|
||||||
|
Loading…
x
Reference in New Issue
Block a user