Releases: dsdanielpark/Bard-API
0.1.20
0.1.20
- Some errors in ChatBard have been fixed. However, it is recommended not to pass the value of the token through input.
0.1.19
0.1.19
- Modify translation-related code to accommodate changes in the Google API interface. you can use the
language
argument. - Additionally, official usage of Google Cloud Translation API is available. For commercial use and others, please make sure to use
google_translator_api_key
to access the official translation API.
0.1.18
Bard-API 0.1.18
- Due to changes in the Google interface, a bug has been fixed in the temporary release of version 0.1.18.
- We are preparing for the release of version 0.1.19, which will include checks for the remaining features.
- Additionally, starting from version
0.1.18
, theGitHub version of BardAPI
will be synchronized with thePyPI version
and released simultaneously.
Notice: the internal API interface of Google has changed. #78
TypeError: 'NoneType' object is not subscriptable
File "C:\Users\Hemanth\AppData\Local\Programs\Python\Python311\Lib\site-packages\bardapi\core.py", line 119, in get_answer
"content": parsed_answer[0][0]
Solution
Using version over 0.1.18
pip install bardapi>=0.1.18
Due to changes in the Google interface, a bug has been fixed in the temporary release of version 0.1.18. We are preparing for the release of version 0.1.19, which will include checks for the remaining features. Additionally, starting from version 0.1.18, the GitHub version of BardAPI will be synchronized with the PyPI version and released simultaneously.
0.1.17
0.1.17
- Add
conversation_id
as argument of Bard class
-
reusable-session-object
When using thereusable session
as an argument in the Bard class, Bard can remember your previous prompts. -
fix-conversation-id-fix-context
When using thereusable session
andconversation_id
as arguments in the Bard class, Bard not only remembers your previous prompts but can also provide consistent responses.
By examining the contents in the response, you can identify several answer candidates with unique conversation_ids. If you find a conversation_id that you prefer, you can pass it as an argument to receive consistent responses from that specific Bard.
0.1.16
To directly execute the Python code received from Bard, set the run_code
argument of Bard class to True
.
Thank you for sharing a valuable use case by R. Navarro.
0.1.15
0.1.15
- I have modified the code to allow passing arguments to ChatBard in version
0.1.15
. - This enables creating ChatBard objects more explicitly.
0.1.14
During the process of handling images, certain conditional statements have been strengthened to resolve errors. Additionally, versioning issues have been corrected for versions 0.1.11multilang
, 0.1.11multilang2
, 0.1.12
, and 0.1.13
, where they were incorrectly labeled as version 0.1.11
. To address this, version 0.1.14
is being released.
Version 0.1.14
, which is distributed via PyPI, includes the following additions to the 0.1.11
version:
- You can interact with Bard using the 'language' parameter, allowing you to converse with Bard using Google Translate.
- You can receive links that are searched by Bard. The response dictionary of Bard will have an additional key called 'links'.
- For images provided by Bard, you can now check them sequentially using the 'images' key.
- The ChatBard class has been added, allowing for easy communication through simple configuration settings.
0.1.13
I will update the ChatBard class. The stable version is still 0.1.11.
Starting from version 0.1.12, it will be available only on the GitHub dev branch.
ChatBard
from bardapi import ChatBard
chat = ChatBard()
chat.start()
or
from bardapi import ChatBard
import os
os.environ["_BARD_API_KEY"] = 'xxxxxx' # Requird
os.environ["_BARD_API_LANG"] = Arabic # Optional, Default to English
os.environ["_BARD_API_TIMEOUT"] = 30 # Optional, Session Timeout
chat = ChatBard()
chat.start()
0.1.12
0.1.12
- The stable version is still 0.1.11, provided that the language argument, links, and images are not included in the returned dictionary.
- Introduce a language factor to Bard, enabling translation using Google Translate.
- Include links and images received from Bard in the returned dictionary.
0.1.11-multilang2
Resolved unspecified language error of 0.1.11-multilang
.
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.