gqlparser icon indicating copy to clipboard operation
gqlparser copied to clipboard

Question: can I set a limit to the maximum number of tokens allowed in a request?

Open vibridi opened this issue 2 years ago • 1 comments

Can I set a limit to the maximum number of tokens allowed in a request?

I.e. once the lexer knows the token count, if count > N fail the request.

vibridi avatar Dec 22 '23 08:12 vibridi

Yes. You can use ParseQueryWithTokenLimit

StevenACoffman avatar Jun 13 '24 00:06 StevenACoffman