google-gemini / generative-ai-python

The official Python library for the Google Gemini API
https://pypi.org/project/google-generativeai/
Apache License 2.0
1.63k stars 324 forks source link

Remove DiscussService and TextService #512

Closed shilpakancharla closed 3 months ago

shilpakancharla commented 3 months ago

Description of the change

We are deprecating the PaLM service, and in part, removing DiscussService and TextService. This is also applies to the DiscussAsyncService as well, and the associated clients.

  1. The following files have been removed:
  1. client.py and test_client.py have been modified to reflect the changes as well.
  2. References to TextServiceClient were removed from answer.py.
  3. Remove reference of TextServiceClient from test_client.py.
  4. Remove anything that doesn't have to do with embeddings from text_types.py.
MarkDaoust commented 3 months ago

The failing test is fixed by: https://github.com/google-gemini/generative-ai-python/pull/521