langchain/libs/community/tests
LuisMSotamba 0901f11b0f
community: add truncation params when an openai assistant's run is created (#28158)
**Description:** When an OpenAI assistant is invoked, it creates a run
by default, allowing users to set only a few request fields. The
truncation strategy is set to auto, which includes previous messages in
the thread along with the current question until the context length is
reached. This causes token usage to grow incrementally:
consumed_tokens = previous_consumed_tokens + current_consumed_tokens.

This PR adds support for user-defined truncation strategies, giving
better control over token consumption.

**Issue:** High token consumption.
2024-11-27 10:53:53 -05:00
..
examples community: add AzureOpenAIWhisperParser (#27796) 2024-10-31 12:37:41 -04:00
integration_tests community: fixed critical bugs at Writer provider (#27879) 2024-11-25 12:03:37 -05:00
unit_tests community: add truncation params when an openai assistant's run is created (#28158) 2024-11-27 10:53:53 -05:00
__init__.py community[major], core[patch], langchain[patch], experimental[patch]: Create langchain-community (#14463) 2023-12-11 13:53:30 -08:00
data.py infra: update mypy 1.10, ruff 0.5 (#23721) 2024-07-03 10:33:27 -07:00