langchain/libs/community/tests/unit_tests/callbacks
Cahid Arda Öz 6c07eb0c12
community[minor]: Add UpstashRatelimitHandler (#21885)
Adding `UpstashRatelimitHandler` callback for rate limiting based on
number of chain invocations or LLM token usage.

For more details, see [upstash/ratelimit-py
repository](https://github.com/upstash/ratelimit-py) or the notebook
guide included in this PR.

Twitter handle: @cahidarda

---------

Co-authored-by: Eugene Yurtsev <eyurtsev@gmail.com>
2024-06-07 21:02:06 +00:00
..
tracers
__init__.py
fake_callback_handler.py docs: fix some spelling mistakes caught by newest version of code spell (#22090) 2024-05-23 16:59:11 -04:00
test_callback_manager.py community[minor]: add bedrock anthropic callback for token usage counting (#19864) 2024-04-09 09:18:48 -05:00
test_imports.py community[minor]: Add UpstashRatelimitHandler (#21885) 2024-06-07 21:02:06 +00:00
test_openai_info.py community: Update costs of openai finetuned models (#22124) 2024-05-24 15:25:17 +00:00
test_streamlit_callback.py
test_upstash_ratelimit_callback.py community[minor]: Add UpstashRatelimitHandler (#21885) 2024-06-07 21:02:06 +00:00