mirror of
https://github.com/ParisNeo/lollms-webui.git
synced 2024-12-19 20:37:51 +00:00
updated web links adding
This commit is contained in:
parent
abeb63759b
commit
bbfb339699
@ -144,11 +144,7 @@ async def add_webpage(request: AddWebPageRequest):
|
||||
raise HTTPException(status_code=400, detail=f"Exception : {e}")
|
||||
|
||||
try:
|
||||
if not lollmsElfServer.personality.processor is None:
|
||||
lollmsElfServer.personality.processor.add_file(file_path, client, partial(lollmsElfServer.process_chunk, client_id = request.client_id))
|
||||
# File saved successfully
|
||||
else:
|
||||
lollmsElfServer.personality.add_file(file_path, client, partial(lollmsElfServer.process_chunk, client_id = request.client_id))
|
||||
client.discussion.add_file(file_path, client, partial(lollmsElfServer.process_chunk, client_id = request.client_id))
|
||||
# File saved successfully
|
||||
lollmsElfServer.HideBlockingMessage()
|
||||
lollmsElfServer.refresh_files()
|
||||
|
@ -1 +1 @@
|
||||
Subproject commit f991f3f585be4904bba822301bc01eeb94d771f1
|
||||
Subproject commit 7d1ff76edd35e8d2188fcdba3c9caa406ff84521
|
Loading…
Reference in New Issue
Block a user