BARD API Versions Save

The unofficial python package that returns response of Google Bard through cookie value.

0.1.40

2 months ago

Transition to Gemini Icon Gemini API

In February 2024, Bard has changed its service name to Gemini.

  • For some countries/regions where the __Secure-1PSID cookie value ends with a single dot: Bard API >= 0.1.40
  • For all other countries/regions: Starting from March 1st, please go to the Gemini API package.

Moving forward, updates will primarily focus on the Gemini API package.


Bard API - version 0.1.40

$ pip install bardapi==0.1.40
$ pip install -q -U bardapi

What's Changed

0.1.39

3 months ago

Bard API - version 0.1.39

$ pip install bardapi==0.1.39
$ pip install -q -U bardapi

Release Note

  • Add Google Contents: Change type hints for compatibility across various Python versions. by @dsdanielpark @veonua #210
  • Add feature: Auto Rotating Cookies by @szv99 #249 #235 #191 - The following, however, requires further development to fully implement the functionality.
  • Add ask in BardAsync: by @jjkoh95 #223
  • Fix Async Bard: I have made modifications to the implementation of async Bard. Please refer to the code examples in the documentation. I have corrected some incorrect arguments and removed unnecessary processes such as translation to align it with async. However, further development is needed. by @dsdanielpark #253 #255
  • Change cookie value assert to print: We have observed that in some countries, accounts, or regions, the cookie value does not end with a single dot. Thus, Instead of using assert, we are changing it to notify through print statements. by @dsdanielpark #261
  • Fix dependencies and refactoring by @dsdanielpark

You can check Google Official Service at #262


  • Branch contributor: @dsdanielpark @szv99, @jjkoh95, @veonua
  • PR index: #223, #235 , #210
  • Issue index: #191, #210, #235 #249, #253, #255, #261
  • Build Git Hash: 15b076bb09f7ba7fd26446cb28410994c5d8e980

What's Changed

New Contributors

Full Changelog: https://github.com/dsdanielpark/Bard-API/compare/0.1.38...0.1.39

0.1.38

7 months ago

0.1.38

$ pip install bardapi==0.1.38
$ pip install -q -U bardapi

Conducted QA on get_answer and ask_about_image method by dsdanielpark

  • In order to prevent confusion in the future, Pull Requests will be rejected if refactoring and contributions are not thoroughly QA-tested.
  • Furthermore, strict rules will be applied regarding additional package imports.
  • We value maintenance of existing features as much as new features for this project, so we will be more careful about future builds.
  • Thank you for your love for the bardapi package. Once again, we thank the contributors and the community. Let's create a great community through consideration and respect for each other.

  • Contributor: dsdanielpark
  • PR index: None
  • Issue index: #198
  • Build Git Hash: 1a90067309b05fa08d434f917880a08f7721b23c
    • During the optimization and refactoring process, I identified formatting and import errors. These issues have been addressed through QA to prevent recurrence.

0.1.37

7 months ago

0.1.37

Do not use.

  • Contributor: dsdanielpark
  • PR index: None
  • Issue index: #198
  • Build Git Hash: 222a519190c1e9f777f71c04f63c976b69f3fbe8
    • During the optimization and refactoring process, I identified formatting and import errors. These issues have been addressed through QA to prevent recurrence.

0.1.36

7 months ago

0.1.36

Do not use.

  • Contributor: dsdanielpark
  • PR index: None
  • Issue index: #198
  • Build Git Hash: 1714a73c2acfe515d1411e27b78a6fbc9d126719
    • During the optimization and refactoring process, I identified formatting and import errors. These issues have been addressed through QA to prevent recurrence.

0.1.35

7 months ago

0.1.35

$ pip install bardapi==0.1.35
$ pip install -U bardapi

It may not work as it is only available for certain accounts, regions, and other restrictions. Google's policy change has led to an increased need for multiple cookie values from users. Some code streamlining is required.

  • Contributor: dsdanielpark
  • PR index: None
  • Issue index: #187, #188, #192
  • Build Git Hash: 045865a60b84eba4d727bb21127e4abd95203577
    • While wrapping some of the overall structures, version 0.1.34 could not properly support ask_about_image due to its omission. Please use the GitHub dev version or version 0.1.33 or 0.1.35. We apologize for the confusion. If you have any ideas for better refactoring of the structure, please feel free to contribute! Thank you.

0.1.34

7 months ago

0.1.34

$ pip install bardapi==0.1.34
$ pip install -q -U bardapi

It may not work as it is only available for certain accounts, regions, and other restrictions. Google's policy change has led to an increased need for multiple cookie values from users. Some code streamlining is required.

  • Contributor: dsdanielpark, aaj-md
  • PR index: None
  • Issue index: #186
  • Build Git Hash: 7a4da93b11bbb9656b577ee1b238e39cc9422d4b
    • We have applied the revamped input text structures as Google Bard have been just updated.
    • While we kept some parts of the structuring for existing contributors a bit messy, we refactored core.py, core_async.py, and core_cookies.py (which mostly inherits from core.py) to enhance readability.
    • The main refactoring includes separating the structuring part into utils.py and isolating some variables into constant.py, improving code maintainability.
    • This decision was made more from a code maintenance perspective than a comprehensive understanding of the overall flow of many users' code, and we anticipate that Google Palm API will officially provide the API to many users for free in the future.

0.1.33

8 months ago

0.1.33

$ pip install bardapi==0.1.33

It may not work as it is only available for certain accounts, regions, and other restrictions. Google's policy change has led to an increased need for multiple cookie values from users. Some code streamlining is required.

0.1.32

9 months ago

0.1.32

$ pip install bardapi==0.1.32

It may not work as it is only available for certain accounts, regions, and other restrictions.

  • Contributors: CBoYXD, dsdanielpark
  • PR indexies:
  • Build Git Hash: 0c43df8ae24648989926a1fa13179b4b674ae3a6
    • Refactoring has been carried out for certain features.
    • Additionally, we are adding previously incomplete components, enhancing readability.
    • As minor errors might be present, a version requiring a hotfix could arise.
    • If no hotfix issues are found in 0.1.32, we plan to maintain the 0.1.32 version for a significant period, and version 0.1.33, which includes refactoring and additional feature implementations, will be deployed after thorough QA.

Warning Refactoring and feature implementation are currently in progress, so issues may arise. It's recommended to refrain from updating and instead use versions below 0.1.30.

0.1.31

9 months ago

0.1.31

$ pip install bardapi==0.1.31

It may not work as it is only available for certain accounts, regions, and other restrictions.

  • Contributors: CBoYXD, lywchaos, dsdanielpark
  • PR indexies: #151, #152, #153, #154, #157
  • Build Git Hash: a4b1c7d0718af5663c64ea227b5ba07ec473ca16
    • Corrected some docstring typos and code formatting. #153
    • Added support for automatic language detection when not specified, especially related to translations. #157
    • Refactored BardAsync object. #152
    • Corrected BardCookies and BardCookies inherit Bard class. #152
    • Add proxies to ask_about_image method #151

I sincerely appreciate the efforts of all contributors.