langchain/libs/partners/google-vertexai/langchain_google_vertexai
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
..
__init__.py google-vertexai[patch]: Harrison/vertex function calling (#16223) 2024-01-18 12:17:40 -08:00
_enums.py google-vertexai[minor]: added safety_settings property to gemini wrapper (#15344) 2024-01-18 08:54:30 -08:00
_utils.py google-vertexai[patch]: serializable citation metadata, release 0.0.4 (#17145) 2024-02-07 15:47:32 -08:00
chains.py google-vertexai[patch]: Harrison/vertex function calling (#16223) 2024-01-18 12:17:40 -08:00
chat_models.py langchain_google_vertexai : added logic to override get_num_tokens_from_messages() for ChatVertexAI (#16784) 2024-02-08 11:30:42 -08:00
embeddings.py
functions_utils.py langchain-google-vertexai[patch]: more verbose mypy config (#16307) 2024-01-24 11:10:45 -07:00
llms.py langchain_google_vertexai : added logic to override get_num_tokens_from_messages() for ChatVertexAI (#16784) 2024-02-08 11:30:42 -08:00
py.typed