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

Commit

Permalink
chore: style black
Browse files Browse the repository at this point in the history
  • Loading branch information
dsdanielpark committed Mar 18, 2024
1 parent a048875 commit 14a17ee
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion gemini/src/model/parser/response_parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,9 @@ def _extract_body(self, response_text: str) -> Dict:
# print(f"Parsing failed with strategy {strategy.__name__}: {e}")
continue

raise ValueError("All parsing strategies failed. Try to use `Gemini.send_request(prompt)` to get original payload.")
raise ValueError(
"All parsing strategies failed. Try to use `Gemini.send_request(prompt)` to get original payload."
)

def __extract_strategy_1(self, response_text: str) -> Dict:
body = json.loads(json.loads(response_text.split("\n")[3])[0][2])
Expand Down

0 comments on commit 14a17ee

Please sign in to comment.