mirror of
https://github.com/oobabooga/text-generation-webui.git
synced 2026-03-24 22:34:41 +01:00
superboogav2: Fix broken delete endpoint (#6010)
This commit is contained in:
parent
249861b65d
commit
fffcd20f4d
|
|
@ -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 a new issue