Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AI Rate Limiting Advanced Plugin documentation displays incorrect #7867

Open
2 tasks done
lnajdekKong opened this issue Sep 6, 2024 · 0 comments
Open
2 tasks done

Comments

@lnajdekKong
Copy link

lnajdekKong commented Sep 6, 2024

Where is the problem?

https://docs.konghq.com/hub/kong-inc/ai-rate-limiting-advanced/how-to/#add-the-ai-rate-limiting-advanced-plugin-to-the-service

What happened?

The curl on the page mentioned above to create the AI Rate Limiting Advanced plugin to the service is incorrect.

curl -i -X POST http://localhost:8001/services/example-service/plugins
--data name=ai-rate-limiting-advanced
--data config.limit=100,10000
--data config.window_size=60,3600
--data config.sync_rate=10

It also mentions that limit/window size is an array. This is not the case.

What did you expect to happen?

curl --request POST
--url http://localhost:8001/services/example-service/plugins
--header 'Content-Type: multipart/form-data'
--form 'config.llm_providers[1].limit=5'
--form 'config.llm_providers[1].name=llama2'
--form 'config.llm_providers[1].window_size=60'
--form name=ai-rate-limiting-advanced

the request should look more like the above.
Previously mentioned "config.limit" - But should be "config.llm_providers[1].limit.
Additionally, window_size and Limit for the AI RLA plugin are both not configured as arrays.

Code of Conduct and Community Expectations

  • I agree to follow this project's Code of Conduct
  • I agree to abide by the Community Expectations
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant