langchain/libs/partners/google-genai/langchain_google_genai
Aditya 9dd7cbb447
google-genai: added logic for method get_num_tokens() (#16205)
<!-- Thank you for contributing to LangChain!

Please title your PR "partners: google-genai",

Replace this entire comment with:
- **Description:** : added logic for method get_num_tokens() for
ChatGoogleGenerativeAI , GoogleGenerativeAI,
  - **Issue:** : https://github.com/langchain-ai/langchain/issues/16204,
  - **Dependencies:** : None,
  - **Twitter handle:** @Aditya_Rane

---------

Co-authored-by: adityarane@google.com <adityarane@google.com>
Co-authored-by: Leonid Kuligin <lkuligin@yandex.ru>
2024-01-24 21:43:16 -07:00
..
__init__.py google-genai[patch], community[patch]: Added support for new Google GenerativeAI models (#14530) 2023-12-14 20:56:46 -08:00
_common.py [Partner] Gemini Embeddings (#14690) 2023-12-13 17:05:31 -08:00
chat_models.py google-genai: added logic for method get_num_tokens() (#16205) 2024-01-24 21:43:16 -07:00
embeddings.py langchain-google-genai[patch]: Add support for end_point and transport parameters to the Gemini API (#15532) 2024-01-12 08:52:00 -08:00
llms.py google-genai: added logic for method get_num_tokens() (#16205) 2024-01-24 21:43:16 -07:00
py.typed [Partner] Gemini Embeddings (#14690) 2023-12-13 17:05:31 -08:00