- 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.
- Bugfix: Add missing enum names to
saftey_types.py
- Update to
google.ai.generativelanguage
v0.3.3
- 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
.
- Add
Initial version