From 46ffca4fc437735e69028ddd647d0ca3ea0d0d84 Mon Sep 17 00:00:00 2001 From: wren <“porlong@qq.com”> Date: Wed, 13 May 2026 15:13:39 +0800 Subject: [PATCH 1/2] fix: correct OCR API path from /ocr to /chandra/ocr for hub endpoint --- .../fastapi_leaudit/leaudit_bridge/resilient_clients.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fastapi_modules/fastapi_leaudit/leaudit_bridge/resilient_clients.py b/fastapi_modules/fastapi_leaudit/leaudit_bridge/resilient_clients.py index e1992e4..369b271 100644 --- a/fastapi_modules/fastapi_leaudit/leaudit_bridge/resilient_clients.py +++ b/fastapi_modules/fastapi_leaudit/leaudit_bridge/resilient_clients.py @@ -277,7 +277,7 @@ class ResilientChandraOCRClient(ChandraOCRClient): files = {"file": (path.name, file_obj, _guess_mime(path))} data = {"include_images": str(self.include_images).lower()} response = await client.post( - f"{self.base_url}/ocr", + f"{self.base_url}/chandra/ocr", files=files, data=data, ) -- 2.52.0 From 2e0e23fc6a7d78a760155a9d8033e9e006281718 Mon Sep 17 00:00:00 2001 From: wren <“porlong@qq.com”> Date: Wed, 13 May 2026 15:21:09 +0800 Subject: [PATCH 2/2] fix: correct LLM/VLM base URL to /qwen/v1 path for hub endpoint --- app.toml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app.toml b/app.toml index 07e8d3b..1cfca48 100644 --- a/app.toml +++ b/app.toml @@ -33,17 +33,17 @@ BUCKET = "leaudit" REGION = "" [LLM] -BASE_URL = "https://dashscope.aliyuncs.com/compatible-mode/v1" +BASE_URL = "https://hub.leke.run/qwen/v1" MODEL = "qwen3.5-35b-a3b" API_KEY = "sk-6c7466b543b947ffadc50a5d79135712" [VLM] -BASE_URL = "https://dashscope.aliyuncs.com/compatible-mode/v1" +BASE_URL = "https://hub.leke.run/qwen/v1" MODEL = "qwen3.5-35b-a3b" API_KEY = "sk-6c7466b543b947ffadc50a5d79135712" [OCR] -BASE_URL = "http://i-2.gpushare.com:44112/" +BASE_URL = "https://hub.leke.run/" TIMEOUT = 300 [LEAUDIT] -- 2.52.0