Feat: Move langfuse configuration to api page #6155 (#7196)

### 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:
balibabu 2025-04-22 14:08:20 +08:00 committed by GitHub
parent 1cc17eb611
commit 8fca8faa7d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 4 additions and 3 deletions

View File

@ -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>
); );
}; };

View File

@ -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',

View File

@ -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