Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: google-gemini/deprecated-generative-ai-python
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v0.5.4
Choose a base ref
...
head repository: google-gemini/deprecated-generative-ai-python
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: v0.6.0
Choose a head ref
  • 17 commits
  • 55 files changed
  • 5 contributors

Commits on May 17, 2024

  1. Restrict Harm category to the sublist only Gemini support (#295)

    * Restrict Harm category to the sublist only Gemini support
    
    * Update text.py
    
    * Update safety_types.py
    
    * Update safety_types.py
    
    * Update safety_types.py
    
    * split module
    
    Change-Id: Ia94b262d4e27511ca2e4eeb02cb5bd617a772463
    
    * add palm safety
    
    Change-Id: Ia1cb199148619ebbc26638d5983b435245904971
    
    * switch imports
    
    Change-Id: I2853a88d7acc51a78174c97e30bde8eb24e1d457
    
    ---------
    
    Co-authored-by: Mark Daoust <[email protected]>
    aertoria and MarkDaoust authored May 17, 2024
    Configuration menu
    Copy the full SHA
    1b1d883 View commit details
    Browse the repository at this point in the history
  2. Fix bugs, improve code clarity, and enhance overall reliability acros…

    …s several files. (#339)
    
    * Fix and improve
    
    * Fix  `_make_grounding_passages` , `_make_generate_answer_request`
    
    * fix get_default_permission_client and get_default_permission_async_client
    
    * Add how to test all in CONTRIBUTING.md
    
    * fix back support for `tunedModels/` in `get_model` function
    
    * Add pytest to CONTRIBUTING.md
    
    * Break down test_generate_text for better debugging.
    
    * Add pip install nose2 to CONTRIBUTING.md
    
    * Format
    
    Change-Id: I4e222f3e01cb8d350ae293b35a88fd5f718fe3dc
    
    * fix sloppy types in tests
    
    Change-Id: I3ad717ca26e5d170e4bbef23076e528badaaaacb
    
    * Update CONTRIBUTING.md
    
    * Update CONTRIBUTING.md
    
    ---------
    
    Co-authored-by: Mark Daoust <[email protected]>
    Faisal-Alsrheed and MarkDaoust authored May 17, 2024
    Configuration menu
    Copy the full SHA
    51d806d View commit details
    Browse the repository at this point in the history
  3. Improve request_options (#297)

    * Working on request_options
    
    * Add helper_types
    
    Change-Id: Idc3e813616413f4ce085c05b771c0127e4dfc886
    
    * format
    
    Change-Id: I186e015de97ceece56ee5a97f6edef47ef223d18
    
    * UpdateRequestOptions
    
    Change-Id: I9f92466967fb1aa605d442cb143699da4308409b
    
    * Add docs
    
    Change-Id: I209b2b2ad8d783001b1828cbcac84ca301c11bec
    
    * work
    
    Change-Id: I00a2e2edb1e9bf3d4f51c0a868a34e044be3c6ff
    
    * Fix Py3.9
    
    Change-Id: I8cf0ccac90ba3c4548e7549fec7d0b9b58925e7e
    
    * use RequestOptions in tests
    
    Change-Id: I92b68bc86330ad874c3765f428a2e64ba220750f
    
    * annotations
    
    Change-Id: Idbc428075729255d66d2ba8b3bcce0a1d6e8f048
    
    * Update tests/test_discuss.py
    
    Co-authored-by: Mark McDonald <[email protected]>
    
    * tests
    
    Change-Id: Ife30e2cc47bd4c52d2dddafdd85a51df0e42e160
    
    ---------
    
    Co-authored-by: Mark McDonald <[email protected]>
    MarkDaoust and markmcd authored May 17, 2024
    1 Configuration menu
    Copy the full SHA
    30337c2 View commit details
    Browse the repository at this point in the history
  4. Cleanup file data handling. (#321)

    * Fix typing
    
    Change-Id: I09fb7df098da08bb24337b08cbbc997c4c62af1e
    
    * format
    
    Change-Id: I7923e2257a6d935bb1b60f4f81dd7910387292ae
    MarkDaoust authored May 17, 2024
    Configuration menu
    Copy the full SHA
    3193c3e View commit details
    Browse the repository at this point in the history
  5. Add GenerateContentResponse.to_dict() (#337)

    * GenerateContentResponse.to_dict()
    
    Change-Id: I2042d4387fe216f28b9c48b98eab8a71447fb98f
    
    * docstring
    
    Change-Id: Icec923e7d782ef5e6c2e36faefe790ea01ed93ad
    MarkDaoust authored May 17, 2024
    Configuration menu
    Copy the full SHA
    472a3e3 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    88f7ab3 View commit details
    Browse the repository at this point in the history

Commits on May 21, 2024

  1. Allow empty contents with count_tokens (#342)

    Change-Id: Ic20e2f88427d2e4fbc97847cf5c2df1f80a9a5a1
    MarkDaoust authored May 21, 2024
    Configuration menu
    Copy the full SHA
    05877f7 View commit details
    Browse the repository at this point in the history
  2. improve the no-credentials error message, fail fast for no-credential…

    …s in colab. (#352)
    
    * improve the no-credentials error message
    
    Change-Id: I294bd094b56287ed923716dce9ea705ef3135f5b
    
    * patch colab credentials
    
    Change-Id: I5a3cb3168448a565eb3cdc8a0063ae041c41a260
    
    * format
    
    Change-Id: I013d506bdcb64092daddedcf3e30f3728a8f3e30
    MarkDaoust authored May 21, 2024
    Configuration menu
    Copy the full SHA
    f987fde View commit details
    Browse the repository at this point in the history
  3. Enhance functions Documentation and Improve Error Messages (#350)

    * Add Functions docstring to be https://ai.google.dev/api/python/google/generativeai
    
    * Fix and improve Error messages
    
    * Fix invalid keys and improve error messages
    
    * Improve error messages
    
    * Refix to_blob
    Faisal-Alsrheed authored May 21, 2024
    Configuration menu
    Copy the full SHA
    f361642 View commit details
    Browse the repository at this point in the history

Commits on May 22, 2024

  1. Make printing less verbose. (#340)

    * Make printing less verbose.
    
    Change-Id: Ie37c1b75e57427f7256eb3c323a60a2947dcf6b1
    
    * Use string values for enums when printing.
    
    Change-Id: I9b07bd5998445cc4ac59abcae8429fd7dacc824a
    
    * format
    
    Change-Id: Ibbdfca4be9370acd246721fd42629a10dc4ca612
    MarkDaoust authored May 22, 2024
    Configuration menu
    Copy the full SHA
    6df10a7 View commit details
    Browse the repository at this point in the history
  2. Add video metadata and error to File (#348)

    * Add video metadata and error to File
    
    Change-Id: I721147d4e9abf526c7f0a60346761591d63ebb2f
    
    * add tests
    
    Change-Id: I41a7af34a3068549cee3c45aead9a042415219ee
    
    * fix tests
    
    Change-Id: I005e30219f49830f73658488e58588d6ed7ccd88
    MarkDaoust authored May 22, 2024
    Configuration menu
    Copy the full SHA
    75b97db View commit details
    Browse the repository at this point in the history
  3. Quick safety filtering: Allow safety_settings="block_none" (#347)

    * allow safety_settings='off'
    
    Change-Id: Ica10b399177301073424a98cb3a8b0736dc216b4
    
    * Fix tests.
    
    Change-Id: I06cfd07397e984b9fb757b2831b419eefb8aff98
    
    * license
    
    Change-Id: Ifa4843831b9c1479198c2b45c5b5abad8410f448
    
    * format
    
    Change-Id: I534837c309121cda9c8947acdd6c126c9c730d62
    
    * add test
    
    Change-Id: I9bce66322d64b3d6296d4db7cc0a7b7b9a78763b
    MarkDaoust authored May 22, 2024
    Configuration menu
    Copy the full SHA
    386994a View commit details
    Browse the repository at this point in the history
  4. Add request options to chat. (#341)

    * Add request options to chat
    
    Change-Id: I6f7e4c980fd7e2a14fec4c3e2d837ad745c69c9a
    
    * fix async
    
    Change-Id: Ia224e9e8327443a9920ce5d9a877ebb8c272e583
    
    * fix
    
    Change-Id: I7eed70131346c7d7ffe435c8f6909f7eb3f7e9f7
    
    * merge from main
    
    Change-Id: I4b92a5bc25aa7bf11bfaf31aa6c029096f3e68bc
    
    * add tests
    
    Change-Id: I368315f220413ba9508012721e64093372555590
    
    * format
    
    Change-Id: I26c7fa1f040e7d1ea16068034d78fb9f6cc13db0
    MarkDaoust authored May 22, 2024
    Configuration menu
    Copy the full SHA
    0dca4ce View commit details
    Browse the repository at this point in the history

Commits on May 27, 2024

  1. Update __init__.py to use the latest model (#362)

    * Update __init__.py
    
    * Grammar
    
    ---------
    
    Co-authored-by: Mark McDonald <[email protected]>
    logankilpatrick and markmcd authored May 27, 2024
    Configuration menu
    Copy the full SHA
    2e62fae View commit details
    Browse the repository at this point in the history

Commits on May 30, 2024

  1. Add genai.protos (#354)

    * Add genai.protos
    
    Change-Id: I21cfada033c6ffbed7a20e117e61582fde925f61
    
    * Add genai.protos
    
    Change-Id: I9c8473d4ca1a0e92489f145a18ef1abd29af22b3
    
    * test_protos.py
    
    Change-Id: I576080fb80cf9dc9345d8bb2178eb4b9ac59ce97
    
    * fix docs + format
    
    Change-Id: I5f9aa3f8e3ae780e5cec2078d3eb153157b195fe
    
    * fix merge
    
    Change-Id: I17014791d966d797b481bca17df69558b23a9a1a
    
    * format
    
    Change-Id: I51d30f6568640456bcf28db2bd338a58a82346de
    
    * Fix client references
    
    Change-Id: I4899231706c9624a0f189b22b6f70aeeb4cbea29
    
    * Fix tests
    
    Change-Id: I8a636fb634fd079a892cb99170a12c0613887ccf
    
    * add import
    
    Change-Id: I517171389801ef249cd478f98798181da83bef69
    
    * fix import
    
    Change-Id: I8921c0caaa9b902ebde682ead31a2444298c2c9c
    
    * Update docstring
    
    Change-Id: I1f6b3b9b9521baa8812a908431bf58c623860733
    
    * spelling
    
    Change-Id: I0421a35687ed14b1a5ca3b496cafd91514c4de92
    
    * remove unused imports
    
    Change-Id: Ifc791796e36668eb473fd0fffea4833b1a062188
    
    * Resolve review coments.
    
    Change-Id: Ieb900190f42e883337028ae25da3be819507db4a
    
    * Update docstring.
    
    Change-Id: I805473f9aaeb04e922a9f66bb5f40716d42fb738
    
    * Fix typo
    
    ---------
    
    Co-authored-by: Mark McDonald <[email protected]>
    MarkDaoust and markmcd authored May 30, 2024
    Configuration menu
    Copy the full SHA
    f08c789 View commit details
    Browse the repository at this point in the history

Commits on Jun 3, 2024

  1. Handle image mode (#374)

    * Handle image mode
    
    Change-Id: Idbd0d65f6359557adbf812190048514080d48e6f
    
    * format
    
    Change-Id: Ia8a386ef959907650dd4fa5b5ab7401e75b9484a
    MarkDaoust authored Jun 3, 2024
    Configuration menu
    Copy the full SHA
    e2263cb View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    7b9758f View commit details
    Browse the repository at this point in the history
Loading