Google-generativeai

Latest version: v0.8.4

Safety actively analyzes 715081 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 4 of 5

0.3.0

Adds the `Content` family of methods to support Gemini models.

0.2.2

- Handle maximum batch size for `embed_text`.
- Restore `types.ModelNameOptions`.
- Update tuning to handle more dataset types (json, pandas, urls, google-sheets).
- Expose `count_text_tokens`
- Expose operations management.
- Allow users to pass custom `metadata` (HTML headers).
- Add dataclass prettyprinting.

0.2.1

- Bugfix: Add missing enum names to `saftey_types.py`
- Update to `google.ai.generativelanguage` v0.3.3
- replace generativelanguage_v1beta3 with generativelanguage
since that's the default in `v0.3.3`.

0.2.0

* Add support for tuning:
* Add get_tuned_model.
* Add list_tuned_models.
* Add create_tuned_model.
* More flexible safety settings:
* Accept strings and ints for enums.
* Accept a {category:threshold} dict in addition to the list of dicts format (`[{"category": category, "threshold": threshold}, ...]`).
* Add support for batched embeddings.

0.1.0

* First real release.
* Support for text generation, chat and embeddings.

0.1.0rc2

Page 4 of 5

© 2025 Safety CLI Cybersecurity Inc. All Rights Reserved.