langchain/libs
Aditya 98176ac982
langchain_google_vertexai : added logic to override get_num_tokens_from_messages() for ChatVertexAI (#16784)
<!-- Thank you for contributing to LangChain!

Replace this entire comment with:
- **Description: added logic to override get_num_tokens_from_messages()
for ChatVertexAI. Currently ChatVertexAI was inheriting
get_num_tokens_from_messages() from BaseChatModel which in-turn was
calling GPT-2 tokenizer
  - **Issue: NA
  - **Dependencies: NA
  - **Twitter handle:@aditya_rane

@lkuligin for review

---------

Co-authored-by: adityarane@google.com <adityarane@google.com>
Co-authored-by: Leonid Kuligin <lkuligin@yandex.ru>
2024-02-08 11:30:42 -08:00
..
cli cli[patch]: copyright 2024 default (#17204) 2024-02-07 14:52:37 -08:00
community community[patch]: octoai embeddings bug fix (#17216) 2024-02-07 22:25:52 -05:00
core langchain[minor], community[minor], core[minor]: Async Cache support and AsyncRedisCache (#15817) 2024-02-07 22:06:09 -05:00
experimental community[minor]: SQLDatabase Add fetch mode cursor, query parameters, query by selectable, expose execution options, and documentation (#17191) 2024-02-07 22:23:43 -05:00
langchain community[minor]: SQLDatabase Add fetch mode cursor, query parameters, query by selectable, expose execution options, and documentation (#17191) 2024-02-07 22:23:43 -05:00
partners langchain_google_vertexai : added logic to override get_num_tokens_from_messages() for ChatVertexAI (#16784) 2024-02-08 11:30:42 -08:00