refactor: improve PDF extraction, error handling, and proxy configuration

This commit is contained in:
2026-06-30 10:39:27 +08:00
parent 1ccac1f29a
commit a2e3dc398b
7 changed files with 438 additions and 71 deletions
+1 -1
View File
@@ -140,7 +140,7 @@ def _get_embedding(text: str) -> list[float] | None:
}
try:
with make_http_client(sync=True) as client:
with make_http_client(sync=True, use_proxy=False) as client:
resp = client.post(url, json=payload, headers=headers)
resp.raise_for_status()
data = resp.json()