Skip to content
This repository has been archived by the owner on Apr 24, 2024. It is now read-only.

Releases: dsdanielpark/Bard-API

0.1.11-multilang

22 May 08:39
7ceb52e
Compare
Choose a tag to compare

To include the GitHub developer version as a dependency package, please use the following tag:

bardapi @ git+https://github.com/dsdanielpark/[email protected]

Note that the PyPI version of bardapi does not include the language argument.
However, a better approach is to integrate a separate translation model into the pipeline.

0.1.11

22 May 07:32
Compare
Choose a tag to compare

Clean release of Bard-API without dependency packages.

To view the PyPI installation version of Bard-API, which is version 0.1.11, you can use the following link:

Please note that this version does not include translation functionality and any features related to the googletrans and deep_translator packages. For those functionalities, you will need to install the developer version directly from the official GitHub repository of Bard-API.

  • Due to conflicts with class inheritance and composition in Bard, the usage of Googletrans for supporting other languages in Bard-API developer version increases code complexity and parameter complexity. To avoid excessive dependencies and class explosion issues, deep-translator is used for supporting other languages in Bard-API developer version.

0.1.10

21 May 20:23
Compare
Choose a tag to compare

I confirmed an error due to variable name pollution during the process of automatically finding tokens in the googletrans package, which I tried to use to support various languages. Therefore, I will keep version 0.1.9 as a development version and revert back to version 0.1.8. For those considering support for various languages, please refer to version 0.1.9.

Version 0.1.10 is the same as version 0.1.8.

0.1.9

21 May 16:29
Compare
Choose a tag to compare

Support for multiple languages.

Google Bard currently only supports English, Japanese, and Korean languages for its services. However, I have made adjustments to enable the usage of Google Bard in other languages as well by utilizing python package googletrans

To achieve this, I have added an additional step to the process. When a language is specified as an argument, it will be first translated into English using Google Translate. Then, the response in English will be translated back into the user's specified language.

This modification allows users to use Google Bard in languages other than English, Japanese, and Korean.

Other languages

To detect and translate using the Google Bard in unofficial languages, the Python package googletrans is utilized.

from bardapi import Bard
token = 'xxxxxxx'
bard = Bard(token=token, language='arabic')
res = bard.get_answer("هل تعرف الكيمتشي")

0.1.8

18 May 08:26
6004e28
Compare
Choose a tag to compare

Version 0.1.5 to 0.1.8 includes the following updates:

  • The token parameter has been added as an argument to the Bard class, allowing you to provide the token directly instead of using the _BARD_API_KEY environment variable.
  • The default timeout has been increased to 30 seconds. If you need to adjust the timeout duration, you can specify the timeout argument in seconds when initializing the Bard class.
  • Improved exception handling to provide more explicit error messages for known issues.
  • Code refactoring for improved efficiency. The code has been optimized slightly for better performance.

Please refer to the Colab notebook or the official GitHub readme for more information.

pip install bardapi>=0.1.8

0.1.4

17 May 20:56
4a50784
Compare
Choose a tag to compare

The development status is raised to 5. Production/Stable

  • Improving by passing session object as an argument
  • As a result of user feedback based on the use of the code, it is determined that the package is somewhat stable, so the development status is raised to 5.
  • From now on, package pull requests can only be done in response to debugging or Google API interface changes or Google policy changes.

0.1.3

16 May 08:10
31f973b
Compare
Choose a tag to compare
  • Fixed response errors due to server delays caused by various development environments. Set the timeout argument to the Bard class long enough in seconds.
  • The argument has been modified to work behind a proxy. Enter the proxy information to be changed in the proxy argument of the Bard class.

0.1.2

13 May 17:28
91b79d8
Compare
Choose a tag to compare
  • Updated documentation with detailed explanations including gifs