BIG PYTHON REFACTOR

Python scripts moved out of python/ folder to root to be unified with plugins

+ frontend extension around api calls
This commit is contained in:
frdel 2026-03-05 17:28:11 +01:00
parent f94b7d742c
commit d02dda3667
326 changed files with 1096 additions and 862 deletions

View file

@ -1,17 +0,0 @@
from python.helpers.api import ApiHandler, Input, Output, Request, Response
from python.helpers import persist_chat
class LoadChats(ApiHandler):
async def process(self, input: Input, request: Request) -> Output:
chats = input.get("chats", [])
if not chats:
raise Exception("No chats provided")
ctxids = persist_chat.load_json_chats(chats)
return {
"message": "Chats loaded.",
"ctxids": ctxids,
}