feat: add persistent chat agent and indexed batch workflows

This commit is contained in:
2026-09-26 19:43:23 +08:00
parent 8bebcdb470
commit d61987c86c
17 changed files with 1758 additions and 180 deletions
+8
View File
@@ -63,3 +63,11 @@ def client_for_batch(db, batch):
return DeepSeekClient(base_url=config["base_url"], model=config["model"],
api_key=stored_key or get_settings().deepseek_api_key,
timeout=config["timeout_seconds"], retries=config["retries"])
def client_for_chat(db):
stored_key = _get(db, "api_key") if db.get(AppSetting, "api_key") else None
config = model_config(db)
return DeepSeekClient(base_url=config["base_url"], model=config["model"],
api_key=stored_key or get_settings().deepseek_api_key,
timeout=config["timeout_seconds"], retries=config["retries"])