From b0c762ceba040899410f6e3fa502fa6bbcdd45cc Mon Sep 17 00:00:00 2001 From: oobabooga <112222186+oobabooga@users.noreply.github.com> Date: Tue, 18 Apr 2023 04:10:45 -0300 Subject: [PATCH] Revert a change I think that this may be needed for some clients --- extensions/api/script.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/extensions/api/script.py b/extensions/api/script.py index 04e9f7f4..17878c5d 100644 --- a/extensions/api/script.py +++ b/extensions/api/script.py @@ -78,7 +78,7 @@ class Handler(BaseHTTPRequestHandler): response = json.dumps({ 'results': [{ - 'text': answer + 'text': answer[len(prompt):] }] }) self.wfile.write(response.encode('utf-8'))