Fix but in API extension

This commit is contained in:
oobabooga 2023-04-17 13:54:15 -03:00
parent b1b9519539
commit 163ea295e7

View File

@ -78,7 +78,7 @@ class Handler(BaseHTTPRequestHandler):
response = json.dumps({ response = json.dumps({
'results': [{ 'results': [{
'text': answer[len(prompt):] 'text': answer
}] }]
}) })
self.wfile.write(response.encode('utf-8')) self.wfile.write(response.encode('utf-8'))