File tree Expand file tree Collapse file tree 2 files changed +6
-2
lines changed
src/{{ project_name_snake }} Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -69,5 +69,7 @@ def get_llama_cloud_client():
6969 return AsyncLlamaCloud(
7070 base_url=base_url,
7171 token=api_key,
72- httpx_client=httpx.AsyncClient(timeout=60, headers={"Project-Id": project_id}),
72+ httpx_client=httpx.AsyncClient(
73+ timeout=60, headers={"Project-Id": project_id} if project_id else None
74+ ),
7375 )
Original file line number Diff line number Diff line change @@ -69,5 +69,7 @@ def get_llama_cloud_client():
6969 return AsyncLlamaCloud (
7070 base_url = base_url ,
7171 token = api_key ,
72- httpx_client = httpx .AsyncClient (timeout = 60 , headers = {"Project-Id" : project_id }),
72+ httpx_client = httpx .AsyncClient (
73+ timeout = 60 , headers = {"Project-Id" : project_id } if project_id else None
74+ ),
7375 )
You can’t perform that action at this time.
0 commit comments