Releases: google-gemini/generative-ai-python
Releases · google-gemini/generative-ai-python
v0.8.3
New features
- Search grounding by @shilpakancharla in #558
Updates, bug fixes, and examples
- Preserve quality and optimize transfer of prompt images by @PicardParis in #570
- Remove finish_message by @MarkDaoust in #571
- Stream file upload by @Hamza-nabil in #556
- Update the default model name by @MarkDaoust in #576
- Removing OAuth from tuning for REST by @shilpakancharla in #579
New Contributors
- @PicardParis made their first contribution in #570
Full Changelog: v0.8.2...v0.8.3
v0.8.2 - Add parameters for 002
What's Changed
- Ensure tests are runnable when standalone by @markmcd in #552
- Add 002 parameters and fixes. by @MarkDaoust in #561
Full Changelog: 0.8.1...v0.8.2
v0.8.1 - Bugfix for Kaggle
What's Changed
- Expand
.text
error descriptions. by @MarkDaoust in #527 - Fix default_metadata for files API. by @MarkDaoust in #548
- Update version for 0.8.1 release. by @MarkDaoust in #554
Full Changelog: v0.8.0...0.8.1
v0.8.0
Breaking changes
- Remove DiscussService and TextService by @shilpakancharla in #512
New features
- Enum support by @MarkDaoust in #529
Minor updatres and bug fixes
- Fix PIL.Image imports. by @MarkDaoust in #447
- Expand PIL image support. by @MarkDaoust in #523
- Using the
GEMINI_API_KEY
by default instead of theGOOGLE_API_KEY
one by @Giom-V in #418 - make caching visible by default by @MarkDaoust in #493
- Fix tests for 3.12.5 by @MarkDaoust in #521
- Update generativemlanguage version (new prompt_feedback and finish_reasons) by @MarkDaoust in #547
Samples
- Sync count tokens examples by @MarkDaoust in #445
- Add code execution python sample by @shilpakancharla in #451
- Update example to show part types. by @MarkDaoust in #452
- move model_configuration samples by @MarkDaoust in #454
- move model_configuration samples by @MarkDaoust in #456
- Format code execution by @shilpakancharla in #457
- Chat REST samples by @shilpakancharla in #449
- Fix END tuned_models_generate_content tag. by @MarkDaoust in #458
- Update count_tokens.py by @rachelsaunders in #459
- Formatting count tokens by @Giom-V in #460
- Adding count_tokens for rest by @shilpakancharla in #444
- add safety settings examples for curl by @shilpakancharla in #433
- Add markdown docs by @MarkDaoust in #462
- Add REST embeddings & system_instruction sample by @shilpakancharla in #429
text_generation
samples for shell by @shilpakancharla in #430- Added curl examples for files by @shilpakancharla in #480
- Add other functions to count_tokens by @shilpakancharla in #482
- Add pdf samples by @MarkDaoust in #484
- add audio streaming & pdf examples by @shilpakancharla in #483
- Add function calling REST example by @shilpakancharla in #443
- Adding JSON schema curl samples by @shilpakancharla in #434
- Caching cURL sample by @Giom-V in #455
- rename embeddings -> embed by @MarkDaoust in #487
- Code execution for shell by @shilpakancharla in #491
- Fix example by @MarkDaoust in #494
- Ce rest by @shilpakancharla in #495
- Fix response_schema sample. by @MarkDaoust in #498
- Add a README for /samples by @markmcd in #507
- Add additional functions to files & count_tokens. by @shilpakancharla in #490
- REST for tuned models by @shilpakancharla in #496
- Use flash more often. by @MarkDaoust in #517
- Fix the missing closing backticks in CONTRIBUTING by @rakyll in #514
- Avoid making recommendations about regions in README by @rakyll in #538
- Add more enum samples. by @MarkDaoust in #543
- Update controlled_generation.py by @MarkDaoust in #544
New Contributors
- @rachelsaunders made their first contribution in #459
- @rakyll made their first contribution in #514
Full Changelog: v0.7.2...v0.8.0
v0.7.2 - Bugfix
What's Changed
Bugfixes
- Fix bug passing single-string safety settings. by @MarkDaoust in #417
- Fix operator conversion. by @MarkDaoust in #419
- Fix 'ResourceWarning: unclosed <ssl.SSLSocket>' by @MarkDaoust in #422
- Fix
list_models
by @rozha in #439 - Add PngImagePlugin to imports. by @mbanani in #438
- Add webp to mimetypes by @MarkDaoust in #440
Docs and Samples
- Caching samples by @shilpakancharla in #399
- Model list and get samples by @shilpakancharla in #404
- System instructions sample by @shilpakancharla in #407
- Count tokens samples by @shilpakancharla in #403
- fix genai.GenerativeModel argument name in example by @philippemiron in #394
- Adding text generation samples by @shilpakancharla in #405
- Add samples for chat by @shilpakancharla in #408
- Rename json_mode.py and create function calling sample by @shilpakancharla in #406
- Add tuned_models samples by @MarkDaoust in #409
- Add no json schema sample by @shilpakancharla in #416
- fix list initialization and redundant parentheses by @PandasPirate in #412
- Adding a note about free tier not available in Europe by @Giom-V in #401
- Update text only prompts by @shilpakancharla in #420
- Add cache_from_name and cache_chat by @shilpakancharla in #413
- Add create_audio and create_text to
samples/files.py
by @shilpakancharla in #414 - Add safety_settings sample by @shilpakancharla in #415
- Add REST sample for listing and getting models by @shilpakancharla in #421
- Cleanup samples/files.py by @MarkDaoust in #402
- format-samples by @MarkDaoust in #410
- Add model configuration sample by @shilpakancharla in #427
- move SI by @MarkDaoust in #428
- No 's' by @MarkDaoust in #431
- Fix snippet name. by @MarkDaoust in #432
- Fix snippet names + reorder. by @MarkDaoust in #435
- move tuning to tuned_models by @MarkDaoust in #436
- Fix typos by @PandasPirate in #437
- Update tuned_models.py by @MarkDaoust in #441
- Check video status. by @MarkDaoust in #442
New Contributors
- @philippemiron made their first contribution in #394
- @Giom-V made their first contribution in #401
- @rozha made their first contribution in #439
- @mbanani made their first contribution in #438
Full Changelog: v0.7.1...v0.7.2
v0.7.1 - Code Execution
v0.7.0 - Context caching
What's Changed
For a detailed introduction, check out the context caching guide on the site.
Features
- Explicit Caching by @mayureshagashe2105 in #355
- Explicit Caching patch by @mayureshagashe2105 in #377
Bugfixes and small changes
- Delete .github/ISSUE_TEMPLATE directory by @ryanwilson in #389
- Update gapic lib to use 0.6.5 and fix tests by @mayureshagashe2105 in #390
- Accept partial file names by @mayureshagashe2105 in #386
- Remove duplicate test by @mayureshagashe2105 in #387
Docs
- remove references to pro-vision by @MarkDaoust in #388
New Contributors
- @ryanwilson made their first contribution in #389
Full Changelog: v0.6.0...v0.7.0
v0.6.0
What's Changed
Features
- Add
genai.protos
to discourage direct use of google.ai.generativelanguage by @MarkDaoust in #354 - Add video metadata and error to File by @MarkDaoust in #348
- Restrict Harm category to the subset supported by Gemini by @aertoria in #295
- Improve request_options by @MarkDaoust in #297
- Add GenerateContentResponse.to_dict() by @MarkDaoust in #337
- Quick safety filtering: Allow
safety_settings="block_none"
by @MarkDaoust in #347
Bugfixes
- Cleanup file data handling. by @MarkDaoust in #321
- Allow count_tokens with no
contents
. by @MarkDaoust in #342 - improve the no-credentials error message, fail fast for no-credentials in colab. by @MarkDaoust in #352
- Make printing less verbose. by @MarkDaoust in #340
- Add request options to chat. by @MarkDaoust in #341
- Handle image RGBA mode by @MarkDaoust in #374
Docs
- Fix bugs, improve code clarity, and enhance overall reliability across several files. by @Faisal-Alsrheed in #339
- Enhance functions Documentation and Improve Error Messages by @Faisal-Alsrheed in #350
- Fix argument description. by @MarkDaoust in #338
- Update init.py to use the latest model by @logankilpatrick in #362
New Contributors
- @Faisal-Alsrheed made their first contribution in #339
- @logankilpatrick made their first contribution in #362
Full Changelog: v0.5.4...v0.6.0
v0.5.4 - Bugfix: Update client library version to clear timeouts.
What's Changed
- Update version of generativelanguage to fix timeout errors. by @MarkDaoust in #345
v0.5.3
What's Changed
Features
- Extend permissions service support to Tuned Models by @mayureshagashe2105 in #219
- Support improved CountTokens and usage_metadata output by @MarkDaoust in #315
- Add JSON schema support
- Add response_schema parameter by @shilpakancharla in #302
- Improve schema support by @MarkDaoust in #309
- Upgrade file handling
- Add file state by @MarkDaoust in #316
- Add support for resumable uploads for File API by @TYMichaelChen in #275
- Return full file details at the end of create. by @MarkDaoust in #314
- Update client.py by @MarkDaoust in #325
Bugfixes
-
update_time defined twice hence removing once. by @PandasPirate in #301
-
Add main async code match test by @mayureshagashe2105 in #299
-
Copy test cases over for new responder.py by @shilpakancharla in #303
Docs
- Debug docs build. by @MarkDaoust in #298
- Update issue templates to point to the Discourse forum by @ymodak in #304
- typo by @MarkDaoust in #313
New Contributors
- @PandasPirate made their first contribution in #301
Full Changelog: v0.5.2...v0.5.3