Google-generativeai

Latest version: v0.8.3

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

Scan your dependencies

Page 1 of 4

0.8.2

What's Changed
* Ensure tests are runnable when standalone by markmcd in https://github.com/google-gemini/generative-ai-python/pull/552
* Add 002 parameters and fixes. by MarkDaoust in https://github.com/google-gemini/generative-ai-python/pull/561


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

0.8.1

What's Changed
* Expand `.text` error descriptions. by MarkDaoust in https://github.com/google-gemini/generative-ai-python/pull/527
* Fix default_metadata for files API. by MarkDaoust in https://github.com/google-gemini/generative-ai-python/pull/548
* Update version for 0.8.1 release. by MarkDaoust in https://github.com/google-gemini/generative-ai-python/pull/554


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

0.8.0

Breaking changes

* Remove DiscussService and TextService by shilpakancharla in https://github.com/google-gemini/generative-ai-python/pull/512

New features

* Enum support by MarkDaoust in https://github.com/google-gemini/generative-ai-python/pull/529

Minor updatres and bug fixes

* Fix PIL.Image imports. by MarkDaoust in https://github.com/google-gemini/generative-ai-python/pull/447
* Expand PIL image support. by MarkDaoust in https://github.com/google-gemini/generative-ai-python/pull/523
* Using the `GEMINI_API_KEY` by default instead of the `GOOGLE_API_KEY` one by Giom-V in https://github.com/google-gemini/generative-ai-python/pull/418
* make caching visible by default by MarkDaoust in https://github.com/google-gemini/generative-ai-python/pull/493
* Fix tests for 3.12.5 by MarkDaoust in https://github.com/google-gemini/generative-ai-python/pull/521
* Update generativemlanguage version (new prompt_feedback and finish_reasons) by MarkDaoust in https://github.com/google-gemini/generative-ai-python/pull/547

Samples

* Sync count tokens examples by MarkDaoust in https://github.com/google-gemini/generative-ai-python/pull/445
* Add code execution python sample by shilpakancharla in https://github.com/google-gemini/generative-ai-python/pull/451
* Update example to show part types. by MarkDaoust in https://github.com/google-gemini/generative-ai-python/pull/452
* move model_configuration samples by MarkDaoust in https://github.com/google-gemini/generative-ai-python/pull/454
* move model_configuration samples by MarkDaoust in https://github.com/google-gemini/generative-ai-python/pull/456
* Format code execution by shilpakancharla in https://github.com/google-gemini/generative-ai-python/pull/457
* Chat REST samples by shilpakancharla in https://github.com/google-gemini/generative-ai-python/pull/449
* Fix END tuned_models_generate_content tag. by MarkDaoust in https://github.com/google-gemini/generative-ai-python/pull/458
* Update count_tokens.py by rachelsaunders in https://github.com/google-gemini/generative-ai-python/pull/459
* Formatting count tokens by Giom-V in https://github.com/google-gemini/generative-ai-python/pull/460
* Adding count_tokens for rest by shilpakancharla in https://github.com/google-gemini/generative-ai-python/pull/444
* add safety settings examples for curl by shilpakancharla in https://github.com/google-gemini/generative-ai-python/pull/433
* Add markdown docs by MarkDaoust in https://github.com/google-gemini/generative-ai-python/pull/462
* Add REST embeddings & system_instruction sample by shilpakancharla in https://github.com/google-gemini/generative-ai-python/pull/429
* `text_generation` samples for shell by shilpakancharla in https://github.com/google-gemini/generative-ai-python/pull/430
* Added curl examples for files by shilpakancharla in https://github.com/google-gemini/generative-ai-python/pull/480
* Add other functions to count_tokens by shilpakancharla in https://github.com/google-gemini/generative-ai-python/pull/482
* Add pdf samples by MarkDaoust in https://github.com/google-gemini/generative-ai-python/pull/484
* add audio streaming & pdf examples by shilpakancharla in https://github.com/google-gemini/generative-ai-python/pull/483
* Add function calling REST example by shilpakancharla in https://github.com/google-gemini/generative-ai-python/pull/443
* Adding JSON schema curl samples by shilpakancharla in https://github.com/google-gemini/generative-ai-python/pull/434
* Caching cURL sample by Giom-V in https://github.com/google-gemini/generative-ai-python/pull/455
* rename embeddings -> embed by MarkDaoust in https://github.com/google-gemini/generative-ai-python/pull/487
* Code execution for shell by shilpakancharla in https://github.com/google-gemini/generative-ai-python/pull/491
* Fix example by MarkDaoust in https://github.com/google-gemini/generative-ai-python/pull/494
* Ce rest by shilpakancharla in https://github.com/google-gemini/generative-ai-python/pull/495
* Fix response_schema sample. by MarkDaoust in https://github.com/google-gemini/generative-ai-python/pull/498
* Add a README for /samples by markmcd in https://github.com/google-gemini/generative-ai-python/pull/507
* Add additional functions to files & count_tokens. by shilpakancharla in https://github.com/google-gemini/generative-ai-python/pull/490
* REST for tuned models by shilpakancharla in https://github.com/google-gemini/generative-ai-python/pull/496
* Use flash more often. by MarkDaoust in https://github.com/google-gemini/generative-ai-python/pull/517
* Fix the missing closing backticks in CONTRIBUTING by rakyll in https://github.com/google-gemini/generative-ai-python/pull/514
* Avoid making recommendations about regions in README by rakyll in https://github.com/google-gemini/generative-ai-python/pull/538
* Add more enum samples. by MarkDaoust in https://github.com/google-gemini/generative-ai-python/pull/543
* Update controlled_generation.py by MarkDaoust in https://github.com/google-gemini/generative-ai-python/pull/544

New Contributors
* rachelsaunders made their first contribution in https://github.com/google-gemini/generative-ai-python/pull/459
* rakyll made their first contribution in https://github.com/google-gemini/generative-ai-python/pull/514

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

0.7.2

What's Changed

Bugfixes

* Fix bug passing single-string safety settings. by MarkDaoust in https://github.com/google-gemini/generative-ai-python/pull/417
* Fix operator conversion. by MarkDaoust in https://github.com/google-gemini/generative-ai-python/pull/419
* Fix 'ResourceWarning: unclosed <ssl.SSLSocket>' by MarkDaoust in https://github.com/google-gemini/generative-ai-python/pull/422
* Fix `list_models` by rozha in https://github.com/google-gemini/generative-ai-python/pull/439
* Add PngImagePlugin to imports. by mbanani in https://github.com/google-gemini/generative-ai-python/pull/438
* Add webp to mimetypes by MarkDaoust in https://github.com/google-gemini/generative-ai-python/pull/440

Docs and Samples

* Caching samples by shilpakancharla in https://github.com/google-gemini/generative-ai-python/pull/399
* Model list and get samples by shilpakancharla in https://github.com/google-gemini/generative-ai-python/pull/404
* System instructions sample by shilpakancharla in https://github.com/google-gemini/generative-ai-python/pull/407
* Count tokens samples by shilpakancharla in https://github.com/google-gemini/generative-ai-python/pull/403
* fix genai.GenerativeModel argument name in example by philippemiron in https://github.com/google-gemini/generative-ai-python/pull/394
* Adding text generation samples by shilpakancharla in https://github.com/google-gemini/generative-ai-python/pull/405
* Add samples for chat by shilpakancharla in https://github.com/google-gemini/generative-ai-python/pull/408
* Rename json_mode.py and create function calling sample by shilpakancharla in https://github.com/google-gemini/generative-ai-python/pull/406
* Add tuned_models samples by MarkDaoust in https://github.com/google-gemini/generative-ai-python/pull/409
* Add no json schema sample by shilpakancharla in https://github.com/google-gemini/generative-ai-python/pull/416
* fix list initialization and redundant parentheses by PandasPirate in https://github.com/google-gemini/generative-ai-python/pull/412
* Adding a note about free tier not available in Europe by Giom-V in https://github.com/google-gemini/generative-ai-python/pull/401
* Update text only prompts by shilpakancharla in https://github.com/google-gemini/generative-ai-python/pull/420
* Add cache_from_name and cache_chat by shilpakancharla in https://github.com/google-gemini/generative-ai-python/pull/413
* Add create_audio and create_text to `samples/files.py` by shilpakancharla in https://github.com/google-gemini/generative-ai-python/pull/414
* Add safety_settings sample by shilpakancharla in https://github.com/google-gemini/generative-ai-python/pull/415
* Add REST sample for listing and getting models by shilpakancharla in https://github.com/google-gemini/generative-ai-python/pull/421
* Cleanup samples/files.py by MarkDaoust in https://github.com/google-gemini/generative-ai-python/pull/402
* format-samples by MarkDaoust in https://github.com/google-gemini/generative-ai-python/pull/410
* Add model configuration sample by shilpakancharla in https://github.com/google-gemini/generative-ai-python/pull/427
* move SI by MarkDaoust in https://github.com/google-gemini/generative-ai-python/pull/428
* No 's' by MarkDaoust in https://github.com/google-gemini/generative-ai-python/pull/431
* Fix snippet name. by MarkDaoust in https://github.com/google-gemini/generative-ai-python/pull/432
* Fix snippet names + reorder. by MarkDaoust in https://github.com/google-gemini/generative-ai-python/pull/435
* move tuning to tuned_models by MarkDaoust in https://github.com/google-gemini/generative-ai-python/pull/436
* Fix typos by PandasPirate in https://github.com/google-gemini/generative-ai-python/pull/437
* Update tuned_models.py by MarkDaoust in https://github.com/google-gemini/generative-ai-python/pull/441
* Check video status. by MarkDaoust in https://github.com/google-gemini/generative-ai-python/pull/442

New Contributors
* philippemiron made their first contribution in https://github.com/google-gemini/generative-ai-python/pull/394
* Giom-V made their first contribution in https://github.com/google-gemini/generative-ai-python/pull/401
* rozha made their first contribution in https://github.com/google-gemini/generative-ai-python/pull/439
* mbanani made their first contribution in https://github.com/google-gemini/generative-ai-python/pull/438

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

0.7.1

What's Changed

* Add code execution by shilpakancharla in https://github.com/google-gemini/generative-ai-python/pull/396

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

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

Page 1 of 4

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.