[PR #37] [CLOSED] Add support for LlamaCloud in the EU #39

Closed
opened 2026-02-16 03:16:45 -05:00 by yindo · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/run-llama/auto_rfp/pull/37
Author: @roland-at-ailtir
Created: 12/10/2025
Status: Closed

Base: mainHead: roland/feature/base_url


📝 Commits (10+)

  • 741017a Add LLAMACLOUD_API_URL to the README.
  • 38db24f Consolidate all env var processing into env.ts.
  • 8dfd2ca Make API_KEY_INTERNAL optional (again).
  • f071680 Log all env vars in/with validateEnv(). Refactor validateEnv() for readability.
  • 2491214 Refactoring to use the (safe) env map.
  • 9879235 Remove /Retire getAppUrl().
  • 453cfb0 Refactor to call validateEnv() only once when the app starts.
  • e98a8c0 Remove old comment
  • e686b5b Replace hard-coded api-urls with API_URL
  • 44d4579 Add baseUrl when creating the llama clients.

📊 Changes

24 files changed (+192 additions, -127 deletions)

View changed files

📝 README.md (+3 -0)
📝 app/api/generate-response-multistep/route.ts (+3 -9)
📝 app/api/llamacloud/projects/route.ts (+3 -11)
📝 app/api/organizations/route.ts (+3 -7)
📝 app/api/projects/[projectId]/indexes/route.ts (+2 -2)
📝 app/globals.css (+0 -1)
📝 app/login/actions.ts (+3 -2)
instrumentation.ts (+18 -0)
📝 lib/db.ts (+3 -2)
📝 lib/env.ts (+96 -27)
📝 lib/interfaces/llamaindex.ts (+0 -0)
📝 lib/llamaindex-service.ts (+12 -10)
📝 lib/llamaparse-service.ts (+9 -7)
📝 lib/services/default-response-service.ts (+1 -1)
📝 lib/services/llamacloud-client.ts (+4 -3)
📝 lib/services/llamacloud-connection-service.ts (+4 -9)
📝 lib/services/llamacloud-documents-service.ts (+4 -14)
📝 lib/services/multi-step-response-service.ts (+9 -8)
📝 lib/services/openai-question-extractor.ts (+2 -5)
📝 lib/services/response-generation-service.ts (+1 -1)

...and 4 more files

📄 Description

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.

While adding this I also made the following changes ...

  • Consolidated env var processing into ./lib/env.ts
  • Changed the datatype of env to map
  • Made sure validateEnv() is only called once
  • Added logEnv() to validateEnv()

... and a couple of other small code-hygiene changes.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/run-llama/auto_rfp/pull/37 **Author:** [@roland-at-ailtir](https://github.com/roland-at-ailtir) **Created:** 12/10/2025 **Status:** ❌ Closed **Base:** `main` ← **Head:** `roland/feature/base_url` --- ### 📝 Commits (10+) - [`741017a`](https://github.com/run-llama/auto_rfp/commit/741017aad1001bf36baa258ef304e37e78cae3d8) Add LLAMACLOUD_API_URL to the README. - [`38db24f`](https://github.com/run-llama/auto_rfp/commit/38db24f5c2d39cdea613699af637423f516584d4) Consolidate all env var processing into env.ts. - [`8dfd2ca`](https://github.com/run-llama/auto_rfp/commit/8dfd2ca2c17ecd1884ddd77d601a8d227203f0a1) Make API_KEY_INTERNAL optional (again). - [`f071680`](https://github.com/run-llama/auto_rfp/commit/f0716807d6526e5acd48fecd69a1ee3f3778c71e) Log all env vars in/with validateEnv(). Refactor validateEnv() for readability. - [`2491214`](https://github.com/run-llama/auto_rfp/commit/2491214a763f385a107c55e1e33449c531c64c7f) Refactoring to use the (safe) env map. - [`9879235`](https://github.com/run-llama/auto_rfp/commit/987923535180e16d8f4d54a60115bc78cf5151f2) Remove /Retire getAppUrl(). - [`453cfb0`](https://github.com/run-llama/auto_rfp/commit/453cfb093fabb3572b5dab5431512d012c8238b8) Refactor to call validateEnv() only once when the app starts. - [`e98a8c0`](https://github.com/run-llama/auto_rfp/commit/e98a8c0fabee0b248a4dd84393dcfdc34d3410cf) Remove old comment - [`e686b5b`](https://github.com/run-llama/auto_rfp/commit/e686b5bbbacf47555c02e070b1b3cfdcdd4d84ec) Replace hard-coded api-urls with API_URL - [`44d4579`](https://github.com/run-llama/auto_rfp/commit/44d4579e815105bd5370f00619429231a12fbce9) Add baseUrl when creating the llama clients. ### 📊 Changes **24 files changed** (+192 additions, -127 deletions) <details> <summary>View changed files</summary> 📝 `README.md` (+3 -0) 📝 `app/api/generate-response-multistep/route.ts` (+3 -9) 📝 `app/api/llamacloud/projects/route.ts` (+3 -11) 📝 `app/api/organizations/route.ts` (+3 -7) 📝 `app/api/projects/[projectId]/indexes/route.ts` (+2 -2) 📝 `app/globals.css` (+0 -1) 📝 `app/login/actions.ts` (+3 -2) ➕ `instrumentation.ts` (+18 -0) 📝 `lib/db.ts` (+3 -2) 📝 `lib/env.ts` (+96 -27) 📝 `lib/interfaces/llamaindex.ts` (+0 -0) 📝 `lib/llamaindex-service.ts` (+12 -10) 📝 `lib/llamaparse-service.ts` (+9 -7) 📝 `lib/services/default-response-service.ts` (+1 -1) 📝 `lib/services/llamacloud-client.ts` (+4 -3) 📝 `lib/services/llamacloud-connection-service.ts` (+4 -9) 📝 `lib/services/llamacloud-documents-service.ts` (+4 -14) 📝 `lib/services/multi-step-response-service.ts` (+9 -8) 📝 `lib/services/openai-question-extractor.ts` (+2 -5) 📝 `lib/services/response-generation-service.ts` (+1 -1) _...and 4 more files_ </details> ### 📄 Description 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. While adding this I also made the following changes ... - Consolidated env var processing into `./lib/env.ts` - Changed the datatype of env to map - Made sure `validateEnv()` is only called once - Added `logEnv()` to `validateEnv()` ... and a couple of other small code-hygiene changes. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
yindo added the pull-request label 2026-02-16 03:16:45 -05:00
yindo closed this issue 2026-02-16 03:16:45 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: run-llama/auto_rfp#39