From 163ea295e78e2a7c4fcdf065b80893feb99e0748 Mon Sep 17 00:00:00 2001 From: oobabooga <112222186+oobabooga@users.noreply.github.com> Date: Mon, 17 Apr 2023 13:54:15 -0300 Subject: [PATCH] Fix but in API extension --- 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 17878c5d..04e9f7f4 100644 --- a/extensions/api/script.py +++ b/extensions/api/script.py @@ -78,7 +78,7 @@ class Handler(BaseHTTPRequestHandler): response = json.dumps({ 'results': [{ - 'text': answer[len(prompt):] + 'text': answer }] }) self.wfile.write(response.encode('utf-8'))