Skip to content

Commit

Permalink
Change autocomplete token limit to 1000000
Browse files Browse the repository at this point in the history
  • Loading branch information
yoshiokatsuneo committed Feb 10, 2025
1 parent ec2ca6f commit 39873c0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion client/app/pages/queries/hooks/useAutocompleteFlags.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ function calculateTokensCount(schema) {
}

export default function useAutocompleteFlags(schema) {
const isAvailable = useMemo(() => calculateTokensCount(schema) <= 5000, [schema]);
const isAvailable = useMemo(() => calculateTokensCount(schema) <= 1000000, [schema]);
const [isEnabled, setIsEnabled] = useState(localOptions.get("liveAutocomplete", true));

const toggleAutocomplete = useCallback(state => {
Expand Down

0 comments on commit 39873c0

Please sign in to comment.