feat: add persistent chat agent and indexed batch workflows
This commit is contained in:
@@ -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"])
|
||||
|
||||
Reference in New Issue
Block a user