Skip to content

Does ai-rate-limiting have to be used in conjunction with ai-proxy or ai-proxy-multi? #12414

Answered by dosubot bot
renshunhang asked this question in Q&A
Discussion options

You must be logged in to vote

ai-rate-limiting does not have a hardcoded dependency on ai-proxy or ai-proxy-multi, but in practice, it needs to be used with one of these (or a similar plugin) to function correctly. This is because ai-rate-limiting relies on the request context variable ctx.picked_ai_instance_name, which is set by ai-proxy or ai-proxy-multi. Without this context, ai-rate-limiting cannot enforce rate limits as intended. All official documentation and examples show ai-rate-limiting used together with ai-proxy or ai-proxy-multi, not standalone. For more details, see the ai-rate-limiting plugin documentation and the plugin implementation.

To reply, just mention @dosu.


How did I do? Good | Irrelevant | In…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by renshunhang
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant