mirror of
https://github.com/ParisNeo/lollms.git
synced 2024-12-24 06:46:40 +00:00
updated
This commit is contained in:
parent
836aca370a
commit
0a56700bf9
@ -234,6 +234,9 @@ class RemoveFileData(BaseModel):
|
||||
|
||||
@router.post("/remove_file")
|
||||
def remove_file(data:RemoveFileData):
|
||||
"""
|
||||
Removes a file form the personality files
|
||||
"""
|
||||
if lollmsElfServer.personality is None:
|
||||
return {"state":False, "error":"No personality selected"}
|
||||
lollmsElfServer.personality.remove_file(data.name)
|
||||
|
Loading…
Reference in New Issue
Block a user