Merge branch 'main' into feat/rag-2

This commit is contained in:
twwu
2025-07-18 14:03:48 +08:00
155 changed files with 8176 additions and 7681 deletions

View File

@ -21,7 +21,7 @@ def encrypt_token(tenant_id: str, token: str):
return base64.b64encode(encrypted_token).decode()
def decrypt_token(tenant_id: str, token: str):
def decrypt_token(tenant_id: str, token: str) -> str:
return rsa.decrypt(base64.b64decode(token), tenant_id)