Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: chat task label fix #1657

Merged
merged 1 commit into from
Dec 13, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -172,7 +172,7 @@ export const getModelInstanceTaskToolkit = (task: string) => {
<Icons.TextGenerationChat className={className ?? "h-4 w-4"} />
);
},
label: "Text Generation Chat",
label: "Chat",
};

case "TASK_CUSTOM":

Unchanged files with check annotations Beta

return downloadURLResponse;
},
[],

Check warning on line 59 in packages/toolkit/src/lib/react-query-service/artifact/useUploadAndGetDownloadNamespaceObjectURL.ts

GitHub Actions / unit-test

React Hook React.useCallback has missing dependencies: 'getNamespaceObjectDownloadURL', 'getNamespaceObjectUploadURL', and 'uploadNamespaceObject'. Either include them or remove the dependency array

Check warning on line 59 in packages/toolkit/src/lib/react-query-service/artifact/useUploadAndGetDownloadNamespaceObjectURL.ts

GitHub Actions / unit-test

React Hook React.useCallback has missing dependencies: 'getNamespaceObjectDownloadURL', 'getNamespaceObjectUploadURL', and 'uploadNamespaceObject'. Either include them or remove the dependency array
);
return callback;
const collapsibleDefaultOpen = options?.collapsibleDefaultOpen ?? false;
const supportInstillCredit = options?.supportInstillCredit ?? false;
const updateSupportInstillCredit = options?.updateSupportInstillCredit;
const forceCloseCollapsibleFormGroups =

Check warning on line 61 in packages/toolkit/src/lib/use-instill-form/useInstillForm.tsx

GitHub Actions / unit-test

The 'forceCloseCollapsibleFormGroups' logical expression could make the dependencies of useMemo Hook (at line 186) change on every render. Move it inside the useMemo callback. Alternatively, wrap the initialization of 'forceCloseCollapsibleFormGroups' in its own useMemo() Hook

Check warning on line 61 in packages/toolkit/src/lib/use-instill-form/useInstillForm.tsx

GitHub Actions / unit-test

The 'forceCloseCollapsibleFormGroups' logical expression could make the dependencies of useMemo Hook (at line 186) change on every render. Move it inside the useMemo callback. Alternatively, wrap the initialization of 'forceCloseCollapsibleFormGroups' in its own useMemo() Hook
options?.forceCloseCollapsibleFormGroups ?? [];
const updateForceCloseCollapsibleFormGroups =
options?.updateForceCloseCollapsibleFormGroups;
const forceOpenCollapsibleFormGroups =

Check warning on line 65 in packages/toolkit/src/lib/use-instill-form/useInstillForm.tsx

GitHub Actions / unit-test

The 'forceOpenCollapsibleFormGroups' logical expression could make the dependencies of useMemo Hook (at line 186) change on every render. Move it inside the useMemo callback. Alternatively, wrap the initialization of 'forceOpenCollapsibleFormGroups' in its own useMemo() Hook

Check warning on line 65 in packages/toolkit/src/lib/use-instill-form/useInstillForm.tsx

GitHub Actions / unit-test

The 'forceOpenCollapsibleFormGroups' logical expression could make the dependencies of useMemo Hook (at line 186) change on every render. Move it inside the useMemo callback. Alternatively, wrap the initialization of 'forceOpenCollapsibleFormGroups' in its own useMemo() Hook
options?.forceOpenCollapsibleFormGroups ?? [];
const updateForceOpenCollapsibleFormGroups =
options?.updateForceOpenCollapsibleFormGroups;
clearInterval(interval);
}
};
}, [isProcessing, namespaceCatalogChunks.refetch]);

Check warning on line 75 in packages/toolkit/src/view/catalog/components/FileChunks.tsx

GitHub Actions / unit-test

React Hook React.useEffect has a missing dependency: 'namespaceCatalogChunks'. Either include it or remove the dependency array

Check warning on line 75 in packages/toolkit/src/view/catalog/components/FileChunks.tsx

GitHub Actions / unit-test

React Hook React.useEffect has a missing dependency: 'namespaceCatalogChunks'. Either include it or remove the dependency array
return (
<div className="mb-4">
clearInterval(interval);
}
};
}, [files, namespaceCatalogFiles.refetch]);

Check warning on line 122 in packages/toolkit/src/view/catalog/components/tabs/ChunkTab.tsx

GitHub Actions / unit-test

React Hook React.useEffect has a missing dependency: 'namespaceCatalogFiles'. Either include it or remove the dependency array

Check warning on line 122 in packages/toolkit/src/view/catalog/components/tabs/ChunkTab.tsx

GitHub Actions / unit-test

React Hook React.useEffect has a missing dependency: 'namespaceCatalogFiles'. Either include it or remove the dependency array
return (
<div className="flex-col">
return () => {
document.removeEventListener("mousedown", handleClickOutside);
};
}, [props.command]);

Check warning on line 63 in packages/toolkit/src/view/chat/ToolList.tsx

GitHub Actions / unit-test

React Hook React.useEffect has a missing dependency: 'updateEnableToolSuggestion'. Either include it or remove the dependency array

Check warning on line 63 in packages/toolkit/src/view/chat/ToolList.tsx

GitHub Actions / unit-test

React Hook React.useEffect has a missing dependency: 'updateEnableToolSuggestion'. Either include it or remove the dependency array
React.useImperativeHandle(ref, () => ({
onKeyDown: ({ event }) => {
}
return getModelTriggersSummary(modelsChart.data.modelTriggerCounts);
}, [

Check warning on line 234 in packages/toolkit/src/view/dashboard/activity/DashboardActivityPageMainView.tsx

GitHub Actions / unit-test

React Hook React.useMemo has an unnecessary dependency: 'selectedTimeOption'. Either exclude it or remove the dependency array

Check warning on line 234 in packages/toolkit/src/view/dashboard/activity/DashboardActivityPageMainView.tsx

GitHub Actions / unit-test

React Hook React.useMemo has an unnecessary dependency: 'selectedTimeOption'. Either exclude it or remove the dependency array
previousTriggeredModels.isSuccess,
modelsChart.isSuccess,
modelsChart.data?.modelTriggerCounts,
};
}
return { dates: [], values: [] };
}, [creditConsumption.data, costView]);

Check warning on line 110 in packages/toolkit/src/view/dashboard/cost/CostTab.tsx

GitHub Actions / unit-test

React Hook React.useMemo has a missing dependency: 'selectedTimeOption.value'. Either include it or remove the dependency array

Check warning on line 110 in packages/toolkit/src/view/dashboard/cost/CostTab.tsx

GitHub Actions / unit-test

React Hook React.useMemo has a missing dependency: 'selectedTimeOption.value'. Either include it or remove the dependency array
const xAxisFormat: "date" | "hour" = React.useMemo(() => {
if (
];
return baseColumns;
}, [orderBy, targetNamespace?.id]);

Check warning on line 241 in packages/toolkit/src/view/dashboard/cost/model/DashboardListModel.tsx

GitHub Actions / unit-test

React Hook React.useMemo has an unnecessary dependency: 'targetNamespace.id'. Either exclude it or remove the dependency array

Check warning on line 241 in packages/toolkit/src/view/dashboard/cost/model/DashboardListModel.tsx

GitHub Actions / unit-test

React Hook React.useMemo has an unnecessary dependency: 'targetNamespace.id'. Either exclude it or remove the dependency array
if (
modelRuns.isSuccess &&
];
return baseColumns;
}, [orderBy, targetNamespace?.id]);

Check warning on line 239 in packages/toolkit/src/view/dashboard/cost/pipeline/DashboardListPipeline.tsx

GitHub Actions / unit-test

React Hook React.useMemo has an unnecessary dependency: 'targetNamespace.id'. Either exclude it or remove the dependency array

Check warning on line 239 in packages/toolkit/src/view/dashboard/cost/pipeline/DashboardListPipeline.tsx

GitHub Actions / unit-test

React Hook React.useMemo has an unnecessary dependency: 'targetNamespace.id'. Either exclude it or remove the dependency array
if (pipelineRuns.isSuccess && pipelineRuns.data.pipelineRuns.length === 0) {
return (