Skip to content

Commit fe4eb66

Browse files
chore: add base url documentation (#666)
* wip * newline * wip * docs
1 parent 257720e commit fe4eb66

File tree

3 files changed

+22
-0
lines changed

3 files changed

+22
-0
lines changed

README.md

+19
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,25 @@ See the quickstart guides for each service for more information:
3838
- [LlamaReport (beta/invite-only)](./report.md)
3939
- [LlamaExtract (beta/invite-only)](./extract.md)
4040

41+
## Switch to EU SaaS 🇪🇺
42+
43+
If you are interested in using LlamaCloud services in the EU, you can adjust your base URL to `https://api.cloud.eu.llamaindex.ai`.
44+
45+
You can also create your API key in the EU region [here](https://cloud.eu.llamaindex.ai).
46+
47+
```python
48+
from llama_cloud_services import (
49+
LlamaParse,
50+
LlamaReport,
51+
LlamaExtract,
52+
EU_BASE_URL,
53+
)
54+
55+
parser = LlamaParse(api_key="YOUR_API_KEY", base_url=EU_BASE_URL)
56+
report = LlamaReport(api_key="YOUR_API_KEY", base_url=EU_BASE_URL)
57+
extract = LlamaExtract(api_key="YOUR_API_KEY", base_url=EU_BASE_URL)
58+
```
59+
4160
## Documentation
4261

4362
You can see complete SDK and API documentation for each service on [our official docs](https://docs.cloud.llamaindex.ai/).

llama_cloud_services/__init__.py

+2
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,13 @@
11
from llama_cloud_services.parse import LlamaParse
22
from llama_cloud_services.report import ReportClient, LlamaReport
33
from llama_cloud_services.extract import LlamaExtract, ExtractionAgent
4+
from llama_cloud_services.constants import EU_BASE_URL
45

56
__all__ = [
67
"LlamaParse",
78
"ReportClient",
89
"LlamaReport",
910
"LlamaExtract",
1011
"ExtractionAgent",
12+
"EU_BASE_URL",
1113
]

llama_cloud_services/constants.py

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
EU_BASE_URL = "https://api.cloud.eu.llamaindex.ai"

0 commit comments

Comments
 (0)