chore: integrate @tanstack/eslint-plugin-query and fix service layer lint errors (#30444)

This commit is contained in:
yyh
2026-01-04 11:20:06 +08:00
committed by GitHub
parent 815ae6c754
commit 822374eca5
11 changed files with 44 additions and 25 deletions

View File

@ -82,7 +82,7 @@ export const useGetModelCredential = (
) => {
return useQuery({
enabled,
queryKey: [NAME_SPACE, 'model-list', provider, model, modelType, credentialId],
queryKey: [NAME_SPACE, 'model-list', provider, model, modelType, credentialId, configFrom],
queryFn: () => get<ModelCredential>(`/workspaces/current/model-providers/${provider}/models/credentials?model=${model}&model_type=${modelType}&config_from=${configFrom}${credentialId ? `&credential_id=${credentialId}` : ''}`),
staleTime: 0,
gcTime: 0,