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