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'))