mirror of
https://github.com/oobabooga/text-generation-webui.git
synced 2024-11-22 08:07:56 +01:00
Update api.py
Corrected metadata instead of corpus
This commit is contained in:
parent
9ac528715c
commit
8422027848
@ -107,7 +107,7 @@ class Handler(BaseHTTPRequestHandler):
|
||||
|
||||
elif path in ['/api/v1/delete', '/api/delete']:
|
||||
metadata = body.get('metadata')
|
||||
if corpus is None:
|
||||
if metadata is None:
|
||||
self._send_412_error("Missing parameter 'metadata'")
|
||||
return
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user