mirror of
https://github.com/run-llama/auto_rfp.git
synced 2026-08-27 10:11:15 -04:00
[PR #43] [CLOSED] Add support for LlamaCloud in the EU #43
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/run-llama/auto_rfp/pull/43
Author: @roland-at-ailtir
Created: 12/27/2025
Status: ❌ Closed
Base:
main← Head:roland/feature/add-support-for-eu📝 Commits (10+)
c238202Add agentic mode support for LlamaParse and fix eligibility extraction03d28d2Refactor project index selection to single-select with auto-save17b37feFix ESLint configuration and resolve all lint errorsf912ce1Add Vitest testing infrastructure with 173 unit testsf3d62e5Fix missing agenticMode in LlamaParse processing service5f86665Merge branch 'main' into bug-fixa5171a2Merge bug-fix into dev78b7400Fix Add Manually button routing and improve Vercel preview URL handlingeaf8949Simplify IndexSelector to display-only modeb87b676Update .gitignore (with .devcontainer)📊 Changes
53 files changed (+6369 additions, -433 deletions)
View changed files
➕
.eslintrc.json(+3 -0)📝
.gitignore(+2 -0)📝
README.md(+3 -0)📝
app/api/llamacloud/projects/route.ts(+2 -2)📝
app/api/organizations/route.ts(+2 -2)📝
app/api/projects/[projectId]/indexes/route.ts(+5 -5)📝
app/help/page.tsx(+3 -3)📝
app/login/actions.ts(+13 -2)📝
app/login/confirmation/page.tsx(+2 -2)📝
app/login/page.tsx(+2 -2)📝
app/organizations/[orgId]/page.tsx(+9 -9)📝
app/organizations/page.tsx(+6 -6)📝
app/projects/[projectId]/questions/components/index-selector.tsx(+18 -118)📝
app/projects/[projectId]/questions/components/no-questions-available.tsx(+1 -1)📝
app/projects/[projectId]/questions/components/questions-provider.tsx(+0 -26)📝
app/projects/[projectId]/questions/components/questions-section.tsx(+1 -5)📝
app/projects/components/ai-suggestions-panel.tsx(+3 -3)📝
app/projects/components/documents-section.tsx(+13 -5)📝
app/projects/components/project-timeline.tsx(+6 -6)📝
components/FileUploader.tsx(+1 -1)...and 33 more files
📄 Description
This is V2 of this PR (without the env-var system refactoring; I will do that in the next PR as soon as this one is merged).
To support LlamaCloud in the EU we need to make the API_URL configurable.
To that extend I added the LLAMACLOUD_API_URL env var.
Note: This is already rebased on #42. Please merge #42 first.
Note: I am also fixing to small issues that created problems when loading the login-page. The pages now loads with creating the red issues bubble.
Add Configurable LlamaCloud API URL for Regional Support
Summary
Added support for configurable LlamaCloud API endpoints via the LLAMACLOUD_API_URL environment variable, enabling connections to regional LlamaCloud instances (e.g., EU region).
Motivation
Previously, all LlamaCloud API URLs were hardcoded to the US endpoint (https://api.cloud.llamaindex.ai). This prevented users from connecting to regional LlamaCloud deployments, such as the EU instance at https://api.cloud.eu.llamaindex.ai.
Changes
New Environment Variable
Files Modified (10 total)
Core Configuration:
Services & Clients:
2. lib/services/llamacloud-client.ts - Updated to use ${env.LLAMACLOUD_API_URL}/api/v1
3. lib/llama-index-service.ts - Added hostname-only baseUrl for LlamaCloudIndex SDK
4. lib/llamaparse-service.ts - Added protocol+hostname baseUrl for LlamaParseReader SDK
API Routes (6 hardcoded URLs replaced):
5. app/api/llamacloud/projects/route.ts - 2 endpoints
6. app/api/organizations/route.ts - 2 endpoints
7. app/api/projects/[projectId]/indexes/route.ts - 2 endpoints
Documentation:
8. README.md - Added env var documentation with EU example
9. CLAUDE.md - Updated development documentation
10. .env - Updated example with EU endpoint
Technical Details
Different LlamaIndex components require different URL formats:
Configuration Example
Backward Compatibility
Testing
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.