Skip to content

Commit

Permalink
feat: show images from Bard's reply
Browse files Browse the repository at this point in the history
  • Loading branch information
Hanssen0 committed Dec 9, 2023
1 parent 666c52d commit 60e0685
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions BardModule.py
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,8 @@ def process_request(self, request_response: RequestResponseContainer) -> None:
logging.info("Response successfully processed for user {0} ({1})"
.format(request_response.user["user_name"], request_response.user["user_id"]))
request_response.response = bard_response["content"]
if "images" in bard_response and len(bard_response["images"]) > 0:
request_response.response_images = bard_response["images"]

# Save conversation
logging.info("Saving conversation_id as {} and response_id as {} and choice_id as {}".
Expand Down

0 comments on commit 60e0685

Please sign in to comment.