refactor: improve PDF extraction, error handling, and proxy configuration
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user