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

Image and Extenstions #189

Merged
merged 9 commits into from
Sep 26, 2023
Merged

Image and Extenstions #189

merged 9 commits into from
Sep 26, 2023

Conversation

veonua
Copy link
Contributor

@veonua veonua commented Sep 25, 2023

In order to make Bard images and extensions work I had to unify the build_input_text_struct function to accept both text and pictures.

As it's hard to extend get_answer response dictionary, so I had to create a

BardResult class

  • conversation_id
  • response_id
  • search_queries
  • factuality_queries
  • drafts
  • location
  • topic
  • tools_applied

the new method works pretty well with all languages I can speak, so the translation part is missing from the new "ask" method.

 (build_input_image_struct merged into build_input_text_struct)

+ basic support of multiple responses (tools)

+ translator imports moved to optional

+ autofix:
- reformat code
- data types
simplify search of http://googleusercontent.com/*/0 keys to enrich response text
@dsdanielpark dsdanielpark merged commit 2ffd33f into dsdanielpark:main Sep 26, 2023
1 of 2 checks passed
@dsdanielpark
Copy link
Owner

Thank you very much for your contribution.

I had difficulties conducting QA with my Google account settings, but thanks to you, many people will be able to use it with ease. Thank you.

@dsdanielpark dsdanielpark mentioned this pull request Sep 28, 2023
4 tasks
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants