Fixe: model provider issues and improved some features #10703 (#11168)

### What problem does this PR solve?

Fixes: Fixed model provider issues and improved some features
- Removed the old login page
- Updated model provider icons
- Added RAPTOR modification range parameter

### Type of change

- [x] Bug Fix (non-breaking change which fixes an issue)
This commit is contained in:
chanx
2025-11-11 16:26:26 +08:00
committed by GitHub
parent 377c0fb4fa
commit 522c7b7ac6
74 changed files with 203 additions and 10981 deletions

View File

@ -11,14 +11,14 @@ import { useQuery } from '@tanstack/react-query';
import { useCallback, useState } from 'react';
import { useParams, useSearchParams } from 'umi';
import { LogTabs } from './dataset-common';
import { IFileLogList, IOverviewTital } from './interface';
import { IFileLogList, IOverviewTotal } from './interface';
const useFetchOverviewTital = () => {
const [searchParams] = useSearchParams();
const { id } = useParams();
const knowledgeBaseId = searchParams.get('id') || id;
const { data } = useQuery<IOverviewTital>({
queryKey: ['overviewTital'],
const { data } = useQuery<IOverviewTotal>({
queryKey: ['overviewTotal'],
queryFn: async () => {
const { data: res = {} } = await kbService.getKnowledgeBasicInfo({
kb_id: knowledgeBaseId,

View File

@ -128,6 +128,10 @@ const FileLogsPage: FC = () => {
setTopAllData((prev) => {
return {
...prev,
downloads: {
...prev.downloads,
success: topData?.downloaded || 0,
},
processing: {
value: topData?.processing || 0,
success: topData?.finished || 0,

View File

@ -20,11 +20,12 @@ export interface FileLogsTableProps {
active: (typeof LogTabs)[keyof typeof LogTabs];
}
export interface IOverviewTital {
export interface IOverviewTotal {
cancelled: number;
failed: number;
finished: number;
processing: number;
downloaded: number;
}
export interface IFileLogItem {

View File

@ -37,6 +37,7 @@ export const formSchema = z
threshold: z.number().optional(),
max_cluster: z.number().optional(),
random_seed: z.number().optional(),
scope: z.string().optional(),
})
.refine(
(data) => {

View File

@ -73,6 +73,7 @@ export default function DatasetSettings() {
threshold: 0.1,
max_cluster: 64,
random_seed: 0,
scope: 'file',
prompt: t('knowledgeConfiguration.promptText'),
},
graphrag: {
@ -252,7 +253,7 @@ export default function DatasetSettings() {
<GeneralForm></GeneralForm>
<Divider />
<div className="text-base font-medium text-text-primary">
{t('knowledgeConfiguration.gobalIndex')}
{t('knowledgeConfiguration.globalIndex')}
</div>
<GraphRagItems
className="border-none p-0"