From 216bc16fd3ccc8693b7ad00598cf98716bc84180 Mon Sep 17 00:00:00 2001 From: github-actions <${GITHUB_ACTOR}@users.noreply.github.com> Date: Tue, 28 Mar 2023 12:15:53 +0000 Subject: [PATCH] Format Python code with psf/black push --- services/text_service.py | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/services/text_service.py b/services/text_service.py index ee5639e..3d814c4 100644 --- a/services/text_service.py +++ b/services/text_service.py @@ -349,11 +349,12 @@ class TextService: response_text = f"***{from_other_action}*** {response_text}" elif from_ask_command or from_ask_action: response_model = response["model"] - if ( - "gpt-3.5" in response_model - or "gpt-4" in response_model - ): - response_text = f"\n\n{response_text}" if not response_text.startswith("\n\n") else response_text + if "gpt-3.5" in response_model or "gpt-4" in response_model: + response_text = ( + f"\n\n{response_text}" + if not response_text.startswith("\n\n") + else response_text + ) response_text = f"***{prompt}***{response_text}" elif from_edit_command: response_text = response_text.strip()