Skip to content

Commit 01fe86b

Browse files
committed
fix: making usage limits for all users
1 parent 7f0a9a6 commit 01fe86b

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

refact-agent/gui/src/hooks/useCapsForToolUse.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,6 @@ export function useCapsForToolUse() {
6565
}, [caps.data?.code_chat_models, toolUse]);
6666

6767
const usableModelsForPlan = useMemo(() => {
68-
if (user.data?.inference !== "FREE") return usableModels;
6968
if (!usage.aboveUsageLimit && toolUse === "agent") return usableModels;
7069
return usableModels.map((model) => {
7170
if (!PAID_AGENT_LIST.includes(model)) return model;
@@ -77,7 +76,7 @@ export function useCapsForToolUse() {
7776
toolUse !== "agent" ? `${model} (Available in agent)` : undefined,
7877
};
7978
});
80-
}, [user.data?.inference, usableModels, usage.aboveUsageLimit, toolUse]);
79+
}, [usableModels, usage.aboveUsageLimit, toolUse]);
8180

8281
useEffect(() => {
8382
if (

0 commit comments

Comments
 (0)