mirror of
https://github.com/infiniflow/ragflow.git
synced 2026-08-01 21:37:33 +08:00
fix: propagate publish release flag through Go agent endpoints (#17347)
This commit is contained in:
Binary file not shown.
|
Before Width: | Height: | Size: 48 KiB After Width: | Height: | Size: 48 KiB |
@@ -75,8 +75,8 @@ export function NextMessageInput({
|
||||
null,
|
||||
);
|
||||
|
||||
const [enableThinking, setEnableThinking] = useState(
|
||||
() => storage.getThinkingLevel(),
|
||||
const [enableThinking, setEnableThinking] = useState(() =>
|
||||
storage.getThinkingLevel(),
|
||||
);
|
||||
const [enableInternet, setEnableInternet] = useState(false);
|
||||
|
||||
|
||||
@@ -1039,7 +1039,10 @@ export const useFetchKnowledgeList = (
|
||||
};
|
||||
},
|
||||
getNextPageParam: (lastPage, allPages) => {
|
||||
const loaded = allPages.reduce((total, page) => total + page.items.length, 0);
|
||||
const loaded = allPages.reduce(
|
||||
(total, page) => total + page.items.length,
|
||||
0,
|
||||
);
|
||||
return loaded < lastPage.total ? allPages.length + 1 : undefined;
|
||||
},
|
||||
});
|
||||
|
||||
@@ -24,9 +24,10 @@ export const useShowLog = (documents: IDocumentInfo[]) => {
|
||||
const liveDoc = liveDocs?.[0];
|
||||
|
||||
const logInfo = useMemo(() => {
|
||||
const source = liveDoc ?? documents.find(
|
||||
(item: IDocumentInfo) => item.id === record?.id,
|
||||
) ?? record;
|
||||
const source =
|
||||
liveDoc ??
|
||||
documents.find((item: IDocumentInfo) => item.id === record?.id) ??
|
||||
record;
|
||||
let log: ILogInfo = {
|
||||
taskId: source?.id,
|
||||
fileName: source?.name || '-',
|
||||
@@ -41,9 +42,7 @@ export const useShowLog = (documents: IDocumentInfo[]) => {
|
||||
fileSize: formatBytes(source.size || 0),
|
||||
processBeginAt: formatDate(source.process_begin_at),
|
||||
chunkNumber: source.chunk_count,
|
||||
duration: formatSecondsToHumanReadable(
|
||||
source.process_duration || 0,
|
||||
),
|
||||
duration: formatSecondsToHumanReadable(source.process_duration || 0),
|
||||
status: source.run as RunningStatus,
|
||||
details: source.progress_msg,
|
||||
};
|
||||
|
||||
@@ -169,9 +169,7 @@ export function ModelsSection(props: ModelsSectionProps) {
|
||||
});
|
||||
|
||||
// 6a. Model selection for batch verify.
|
||||
const [selectedModels, setSelectedModels] = useState<Set<string>>(
|
||||
new Set(),
|
||||
);
|
||||
const [selectedModels, setSelectedModels] = useState<Set<string>>(new Set());
|
||||
|
||||
const toggleModel = useCallback((name: string) => {
|
||||
setSelectedModels((prev) => {
|
||||
|
||||
@@ -125,7 +125,8 @@ request.interceptors.response.use(
|
||||
}
|
||||
}
|
||||
|
||||
const skipErrorNotification = (response.config as any)?.skipGlobalErrorNotification;
|
||||
const skipErrorNotification = (response.config as any)
|
||||
?.skipGlobalErrorNotification;
|
||||
if (data?.code === 100 && !skipErrorNotification) {
|
||||
message.error(data?.message);
|
||||
} else if (data?.code === 401) {
|
||||
|
||||
Reference in New Issue
Block a user