mirror of
https://github.com/infiniflow/ragflow.git
synced 2025-12-17 19:22:55 +08:00
### What problem does this PR solve? fix: Set the default value of Self RAG to false #1220 fix: Change all tool file names to kebab format ### Type of change - [x] Bug Fix (non-breaking change which fixes an issue)
15 lines
337 B
TypeScript
15 lines
337 B
TypeScript
export const getOneNamespaceEffectsLoading = (
|
|
namespace: string,
|
|
effects: Record<string, boolean>,
|
|
effectNames: Array<string>,
|
|
) => {
|
|
return effectNames.some(
|
|
(effectName) => effects[`${namespace}/${effectName}`],
|
|
);
|
|
};
|
|
|
|
export const delay = (ms: number) =>
|
|
new Promise((resolve) => {
|
|
setTimeout(resolve, ms);
|
|
});
|