Generativeai-gen

Latest version: v1.0.9

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

Scan your dependencies

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

0.2

- More flexible safety settings:
- accept strings, 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.
- Add support for tuning:
- Add `get_{base,tuned}_model`.
- Add `list_tuned_models`.
- Add `create_tuned_model`.

0.1

Initial version

Links

Releases

Has known vulnerabilities

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.