Google-generativeai

Latest version: v0.7.0

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

Scan your dependencies

Page 1 of 3

0.7.0

What's Changed

For a detailed introduction, check out [the context caching guide](https://ai.google.dev/gemini-api/docs/caching?lang=python) on the site.

Features
* Explicit Caching by mayureshagashe2105 in https://github.com/google-gemini/generative-ai-python/pull/355
* Explicit Caching patch by mayureshagashe2105 in https://github.com/google-gemini/generative-ai-python/pull/377

Bugfixes and small changes
* Delete .github/ISSUE_TEMPLATE directory by ryanwilson in https://github.com/google-gemini/generative-ai-python/pull/389
* Update gapic lib to use 0.6.5 and fix tests by mayureshagashe2105 in https://github.com/google-gemini/generative-ai-python/pull/390
* Accept partial file names by mayureshagashe2105 in https://github.com/google-gemini/generative-ai-python/pull/386
* Remove duplicate test by mayureshagashe2105 in https://github.com/google-gemini/generative-ai-python/pull/387

Docs
* remove references to pro-vision by MarkDaoust in https://github.com/google-gemini/generative-ai-python/pull/388

New Contributors
* ryanwilson made their first contribution in https://github.com/google-gemini/generative-ai-python/pull/389

**Full Changelog**: https://github.com/google-gemini/generative-ai-python/compare/v0.6.0...v0.7.0

0.6.0

What's Changed

Features

* Add `genai.protos` to discourage direct use of google.ai.generativelanguage by MarkDaoust in https://github.com/google-gemini/generative-ai-python/pull/354
* Add video metadata and error to File by MarkDaoust in https://github.com/google-gemini/generative-ai-python/pull/348
* Restrict Harm category to the subset supported by Gemini by aertoria in https://github.com/google-gemini/generative-ai-python/pull/295
* Improve request_options by MarkDaoust in https://github.com/google-gemini/generative-ai-python/pull/297
* Add GenerateContentResponse.to_dict() by MarkDaoust in https://github.com/google-gemini/generative-ai-python/pull/337
* Quick safety filtering: Allow `safety_settings="block_none"` by MarkDaoust in https://github.com/google-gemini/generative-ai-python/pull/347


Bugfixes

* Cleanup file data handling. by MarkDaoust in https://github.com/google-gemini/generative-ai-python/pull/321
* Allow count_tokens with no `contents`. by MarkDaoust in https://github.com/google-gemini/generative-ai-python/pull/342
* improve the no-credentials error message, fail fast for no-credentials in colab. by MarkDaoust in https://github.com/google-gemini/generative-ai-python/pull/352
* Make printing less verbose. by MarkDaoust in https://github.com/google-gemini/generative-ai-python/pull/340
* Add request options to chat. by MarkDaoust in https://github.com/google-gemini/generative-ai-python/pull/341
* Handle image RGBA mode by MarkDaoust in https://github.com/google-gemini/generative-ai-python/pull/374

Docs

* Fix bugs, improve code clarity, and enhance overall reliability across several files. by Faisal-Alsrheed in https://github.com/google-gemini/generative-ai-python/pull/339
* Enhance functions Documentation and Improve Error Messages by Faisal-Alsrheed in https://github.com/google-gemini/generative-ai-python/pull/350
* Fix argument description. by MarkDaoust in https://github.com/google-gemini/generative-ai-python/pull/338
* Update __init__.py to use the latest model by logankilpatrick in https://github.com/google-gemini/generative-ai-python/pull/362


New Contributors
* Faisal-Alsrheed made their first contribution in https://github.com/google-gemini/generative-ai-python/pull/339
* logankilpatrick made their first contribution in https://github.com/google-gemini/generative-ai-python/pull/362

**Full Changelog**: https://github.com/google-gemini/generative-ai-python/compare/v0.5.4...v0.6.0

0.5.4

What's Changed

* Update version of generativelanguage to fix timeout errors. by MarkDaoust in https://github.com/google-gemini/generative-ai-python/pull/345

0.5.3

What's Changed

Features

* Extend permissions service support to Tuned Models by mayureshagashe2105 in https://github.com/google-gemini/generative-ai-python/pull/219
* Support improved CountTokens and usage_metadata output by MarkDaoust in https://github.com/google-gemini/generative-ai-python/pull/315
* Add JSON schema support
* Add response_schema parameter by shilpakancharla in https://github.com/google-gemini/generative-ai-python/pull/302
* Improve schema support by MarkDaoust in https://github.com/google-gemini/generative-ai-python/pull/309
* Upgrade file handling
* Add file state by MarkDaoust in https://github.com/google-gemini/generative-ai-python/pull/316
* Add support for resumable uploads for File API by TYMichaelChen in https://github.com/google-gemini/generative-ai-python/pull/275
* Return full file details at the end of create. by MarkDaoust in https://github.com/google-gemini/generative-ai-python/pull/314
* Update client.py by MarkDaoust in https://github.com/google-gemini/generative-ai-python/pull/325

Bugfixes

* update_time defined twice hence removing once. by PandasPirate in https://github.com/google-gemini/generative-ai-python/pull/301
* Add main async code match test by mayureshagashe2105 in https://github.com/google-gemini/generative-ai-python/pull/299
* Copy test cases over for new responder.py by shilpakancharla in https://github.com/google-gemini/generative-ai-python/pull/303

* Add f to f-string by markmcd in https://github.com/google-gemini/generative-ai-python/pull/322

Docs

* Debug docs build. by MarkDaoust in https://github.com/google-gemini/generative-ai-python/pull/298
* Update issue templates to point to the Discourse forum by ymodak in https://github.com/google-gemini/generative-ai-python/pull/304
* typo by MarkDaoust in https://github.com/google-gemini/generative-ai-python/pull/313

New Contributors
* PandasPirate made their first contribution in https://github.com/google-gemini/generative-ai-python/pull/301

**Full Changelog**: https://github.com/google-gemini/generative-ai-python/compare/v0.5.2...v0.5.3

0.5.2

Bug Fix

* Fix file uploads by MarkDaoust in https://github.com/google-gemini/generative-ai-python/pull/291

New Features

* Support for new `TaskTypes` and `output_dimensionality` param by mayureshagashe2105 in https://github.com/google-gemini/generative-ai-python/pull/285


**Full Changelog**: https://github.com/google-gemini/generative-ai-python/compare/v0.5.1...v0.5.2

0.5.1

New features

* Add JSON mode by shilpakancharla in https://github.com/google/generative-ai-python/pull/274

Docs and small fixes

* Fix: incorrect type checking by Yeuoly in https://github.com/google/generative-ai-python/pull/283
* Fix an internal test failure by markmcd in https://github.com/google/generative-ai-python/pull/279
* Allow incomplete GenerationConfigDict by markmcd in https://github.com/google/generative-ai-python/pull/286
* Use generativelanguage v0.6.2 for json mode + update package version. by MarkDaoust in https://github.com/google/generative-ai-python/pull/287

New Contributors
* Yeuoly made their first contribution in https://github.com/google/generative-ai-python/pull/283

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

Page 1 of 3

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.