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 { LangfuseCard } from '@/pages/user-setting/setting-model/langfuse';
import apiDoc from '@parent/docs/references/http_api_reference.md';
import MarkdownPreview from '@uiw/react-markdown-preview';
import { Button, Card, Flex, Space } from 'antd';
@ -28,7 +29,7 @@ const ApiContent = ({
const { handlePreview } = usePreviewChat(idKey);
return (
<div>
<div className="pb-2">
<Flex vertical gap={'middle'}>
<BackendServiceApi show={showApiKeyModal}></BackendServiceApi>
{!hideChatPreviewCard && (
@ -62,6 +63,7 @@ const ApiContent = ({
hideModal={hideEmbedModal}
></EmbedModal>
)} */}
<LangfuseCard></LangfuseCard>
</div>
);
};

View File

@ -58,6 +58,7 @@ const MarkdownToc: React.FC<MarkdownTocProps> = ({ content }) => {
position: 'fixed',
right: 20,
top: 100,
bottom: 150,
width: 200,
background: '#fff',
padding: '10px',

View File

@ -50,7 +50,6 @@ import {
} from './hooks';
import HunyuanModal from './hunyuan-modal';
import styles from './index.less';
import { LangfuseCard } from './langfuse';
import OllamaModal from './ollama-modal';
import SparkModal from './spark-modal';
import SystemModelSettingModal from './system-model-setting-modal';
@ -368,7 +367,6 @@ const UserSettingModel = () => {
return (
<section id="xx" className="w-full space-y-6">
<LangfuseCard></LangfuseCard>
<Spin spinning={loading}>
<section className={styles.modelContainer}>
<SettingTitle