mirror of
https://github.com/oobabooga/text-generation-webui.git
synced 2024-11-26 01:30:20 +01:00
Fix bug in api extension
This commit is contained in:
parent
b992c9236a
commit
7ff645899e
@ -73,7 +73,7 @@ class Handler(BaseHTTPRequestHandler):
|
|||||||
|
|
||||||
response = json.dumps({
|
response = json.dumps({
|
||||||
'results': [{
|
'results': [{
|
||||||
'text': answer if shared.args.is_chat() else answer[len(prompt):]
|
'text': answer if shared.is_chat() else answer[len(prompt):]
|
||||||
}]
|
}]
|
||||||
})
|
})
|
||||||
self.wfile.write(response.encode('utf-8'))
|
self.wfile.write(response.encode('utf-8'))
|
||||||
|
Loading…
Reference in New Issue
Block a user