mirror of
https://github.com/oobabooga/text-generation-webui.git
synced 2024-11-25 01:09:22 +01:00
Fix but in API extension
This commit is contained in:
parent
b1b9519539
commit
163ea295e7
@ -78,7 +78,7 @@ class Handler(BaseHTTPRequestHandler):
|
||||
|
||||
response = json.dumps({
|
||||
'results': [{
|
||||
'text': answer[len(prompt):]
|
||||
'text': answer
|
||||
}]
|
||||
})
|
||||
self.wfile.write(response.encode('utf-8'))
|
||||
|
Loading…
Reference in New Issue
Block a user