Google-generativeai

Latest version: v0.8.2

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

Scan your dependencies

Page 3 of 4

0.4.1

Bugfix

* The send_message_async method should call the asynchronous method generate_content_async by xnny in https://github.com/google/generative-ai-python/pull/229

Docs

* Fix wrong arg name in README by lll-lll-lll-lll in https://github.com/google/generative-ai-python/pull/228

New Contributors
* lll-lll-lll-lll made their first contribution in https://github.com/google/generative-ai-python/pull/228
* xnny made their first contribution in https://github.com/google/generative-ai-python/pull/229

**Full Changelog**: https://github.com/google/generative-ai-python/compare/v0.4.0...v0.4.1

0.4.0

What's new

Features

* Update notebook magics to work with Gemini by markmcd in https://github.com/google/generative-ai-python/pull/109
* Semantic retriever by shilpakancharla in https://github.com/google/generative-ai-python/pull/168
* Attributed question answering (`genai.generate_answer`) by shilpakancharla in https://github.com/google/generative-ai-python/pull/169
* Automatic function calling. by MarkDaoust in https://github.com/google/generative-ai-python/pull/201

model = genai.GenerativeModel(..., tools=[my_function])
chat = model.start_chat(enable_automatic_function_calling=True)

* Request options (timeouts, retry, ...) by aidoskanapyanov in https://github.com/google/generative-ai-python/pull/204

Model.generate_content(...,
request_options={'timeout': 100, 'retry': google.api_core.retry.Retry()})

* Permissions module by mayureshagashe2105 in https://github.com/google/generative-ai-python/pull/205


More updates

* Lock google-auth version to fix 114 by yihong0618 in https://github.com/google/generative-ai-python/pull/115
* Update code in `README.md` and `generate_content` documentation by Hamza-nabil in https://github.com/google/generative-ai-python/pull/149
* Make error message more readable by ftnext in https://github.com/google/generative-ai-python/pull/163
* Python 3.12 support. by MarkDaoust in https://github.com/google/generative-ai-python/pull/165
* Rename model defaults to use gemini-pro by markmcd in https://github.com/google/generative-ai-python/pull/175
* Add a more explicit error when no `parts` are returned by markmcd in https://github.com/google/generative-ai-python/pull/180
* Add `embed_content_async` implementation by mayureshagashe2105 in https://github.com/google/generative-ai-python/pull/189
* Link embed_content reference page to model details page by kaycebasques in https://github.com/google/generative-ai-python/pull/194
* Implement `__repr__` for `GenerateContentResponse` and `ChatSession` by aidoskanapyanov in https://github.com/google/generative-ai-python/pull/202
* Fixed 166. Thanks piresramon. by MarkDaoust in https://github.com/google/generative-ai-python/pull/208

New Contributors
* yihong0618 made their first contribution in https://github.com/google/generative-ai-python/pull/115
* ftnext made their first contribution in https://github.com/google/generative-ai-python/pull/163
* mayureshagashe2105 made their first contribution in https://github.com/google/generative-ai-python/pull/189
* kaycebasques made their first contribution in https://github.com/google/generative-ai-python/pull/194
* aidoskanapyanov made their first contribution in https://github.com/google/generative-ai-python/pull/202

**Full Changelog**: https://github.com/google/generative-ai-python/compare/v0.3.2...v0.4.0

0.3.2

What's Changed

Fix `GenerativeModel.count_tokens`.
Add basic function call support.
Fix async streaming with python 3.9.
Use typing_extensions for TypedDict.
Fix docs and error messages.

New Contributors
* Andy963 made their first contribution in https://github.com/google/generative-ai-python/pull/123
* luo-anthony made their first contribution in https://github.com/google/generative-ai-python/pull/132
* thesanju made their first contribution in https://github.com/google/generative-ai-python/pull/131
* mpursley made their first contribution in https://github.com/google/generative-ai-python/pull/129
* Hamza-nabil made their first contribution in https://github.com/google/generative-ai-python/pull/140
* YebowenHu made their first contribution in https://github.com/google/generative-ai-python/pull/116
* eavanvalkenburg made their first contribution in https://github.com/google/generative-ai-python/pull/104

**Full Changelog**: https://github.com/google/generative-ai-python/compare/v0.3.1...v0.3.2

0.3.1

Doc and Bug fixes.

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.

Page 3 of 4

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.