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

Commit

Permalink
Improve compatibilty of request arguments
Browse files Browse the repository at this point in the history
  • Loading branch information
vsakkas committed Nov 17, 2023
1 parent 787d54e commit c82ba43
Showing 1 changed file with 18 additions and 2 deletions.
20 changes: 18 additions & 2 deletions bard/bard.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,9 +60,25 @@ def _build_ask_parameters(self) -> dict:

def _build_ask_arguments(self, prompt: str) -> dict:
request_data = [
[prompt],
[prompt, 0, None, [], None, None, 0],
[""], # TODO: Support language codes, like "en"
[
self.conversation_id if self.conversation_id else "",
"",
"",
self.response_id if self.response_id else None,
self.choice_id if self.choice_id else None,
[],
],
"", # TODO: Find what this is
"", # TODO: Find what this is
None,
[self.conversation_id, self.response_id, self.choice_id],
[1],
1,
[],
[],
1,
0,
]

return {
Expand Down

0 comments on commit c82ba43

Please sign in to comment.