Releases: dsdanielpark/Bard-API
0.1.40
Transition to 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
- Fix endpoint url Bard to Gemini @dsdanielpark
- Fix misc by @jjkoh95 in #273
- Change bard urls to gemini in docs and core modules by @sudoAlireza in #278
0.1.39
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: 15b076b
What's Changed
- Remove
proxies
argument for async client by @jjkoh95 in #201 - Add necessary import by @CBoYXD in #202
- GoogleWorkspaceContent and GoogleHotelContent by @veonua in #210
- Add
ask
method forAsyncBard
by @jjkoh95 in #223 - Automatically update rotating cookie by @szv99 in #235
New Contributors
Full Changelog: 0.1.38...0.1.39
0.1.38
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: 1a90067
- 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
0.1.37
Do not use.
- Contributor: dsdanielpark
- PR index: None
- Issue index: #198
- Build Git Hash: 222a519
- 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
0.1.36
Do not use.
- Contributor: dsdanielpark
- PR index: None
- Issue index: #198
- Build Git Hash: 1714a73
- 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
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: 045865a
- 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 version0.1.33
or0.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.
- While wrapping some of the overall structures, version 0.1.34 could not properly support
0.1.34
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: 7a4da93
- 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
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.
- Contributor: dsdanielpark
- PR index: None
- Build Git Hash: 7a4da93
- Add conversation_id argument in BardCookies
- Add token_from_browser argument in BardCookies (automatically extracting three cookie values)
- https://github.com/dsdanielpark/Bard-API/blob/main/documents/README_DEV.md#multi-cookie-bard
0.1.32
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: 0c43df8
- 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
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: a4b1c7d
- 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.