fix: correct OCR API path from /ocr to /chandra/ocr for hub endpoint #4
@@ -33,17 +33,17 @@ BUCKET = "leaudit"
|
|||||||
REGION = ""
|
REGION = ""
|
||||||
|
|
||||||
[LLM]
|
[LLM]
|
||||||
BASE_URL = "https://dashscope.aliyuncs.com/compatible-mode/v1"
|
BASE_URL = "https://hub.leke.run/qwen/v1"
|
||||||
MODEL = "qwen3.5-35b-a3b"
|
MODEL = "qwen3.5-35b-a3b"
|
||||||
API_KEY = "sk-6c7466b543b947ffadc50a5d79135712"
|
API_KEY = "sk-6c7466b543b947ffadc50a5d79135712"
|
||||||
|
|
||||||
[VLM]
|
[VLM]
|
||||||
BASE_URL = "https://dashscope.aliyuncs.com/compatible-mode/v1"
|
BASE_URL = "https://hub.leke.run/qwen/v1"
|
||||||
MODEL = "qwen3.5-35b-a3b"
|
MODEL = "qwen3.5-35b-a3b"
|
||||||
API_KEY = "sk-6c7466b543b947ffadc50a5d79135712"
|
API_KEY = "sk-6c7466b543b947ffadc50a5d79135712"
|
||||||
|
|
||||||
[OCR]
|
[OCR]
|
||||||
BASE_URL = "http://i-2.gpushare.com:44112/"
|
BASE_URL = "https://hub.leke.run/"
|
||||||
TIMEOUT = 300
|
TIMEOUT = 300
|
||||||
|
|
||||||
[LEAUDIT]
|
[LEAUDIT]
|
||||||
|
|||||||
@@ -277,7 +277,7 @@ class ResilientChandraOCRClient(ChandraOCRClient):
|
|||||||
files = {"file": (path.name, file_obj, _guess_mime(path))}
|
files = {"file": (path.name, file_obj, _guess_mime(path))}
|
||||||
data = {"include_images": str(self.include_images).lower()}
|
data = {"include_images": str(self.include_images).lower()}
|
||||||
response = await client.post(
|
response = await client.post(
|
||||||
f"{self.base_url}/ocr",
|
f"{self.base_url}/chandra/ocr",
|
||||||
files=files,
|
files=files,
|
||||||
data=data,
|
data=data,
|
||||||
)
|
)
|
||||||
|
|||||||
Reference in New Issue
Block a user