mirror of
https://github.com/oobabooga/text-generation-webui.git
synced 2026-04-20 22:13:43 +00:00
superboogav2: Fix broken delete endpoint (#6010)
This commit is contained in:
parent
249861b65d
commit
fffcd20f4d
1 changed files with 1 additions and 1 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue