Skip to content

RAGFlow is an agent-native database: a Retrieval-Augmented Generation (RAG) engine that grew into context infrastructure.

CLI: fix check license (#18451)

Jin Hai7d4e40ce738a
diff --git a/admin/client/ragflow_client.py b/admin/client/ragflow_client.py
index a30d64a6a8..ead4eec1ab 100644
--- a/admin/client/ragflow_client.py
+++ b/admin/client/ragflow_client.py
@@ -687,7 +687,7 @@ class RAGFlowClient:
response = self.http_client.request("GET", "/admin/license?check=true", use_api_base=True, auth_kind="admin")
if response.status_code == 200:
res_json = response.json()
- if res_json["code"] == 0:
+ if res_json["code"] == 320:
print(res_json["data"])
else:
print(f"Invalid, code: {res_json['code']}, message: {res_json['data']}")