feat: Add support for LlamaCloud EU region#38
Merged
AstraBert merged 6 commits intoAug 14, 2025
Conversation
…lity - Fix AsyncLlamaCloud initialization to use 'token' parameter instead of 'api_key' - Resolve async event loop conflicts in create_llama_cloud_index.py - Fix relative import issues by converting to absolute imports with proper sys.path handling - Centralize regional support logic in utils.py with dedicated client creation functions - Eliminate DRY violations by removing duplicated base_url handling across files - Improve maintainability with consistent parameter handling and import patterns - Add proper error handling for async operations within existing event loops
- Ensure create_llamacloud_index is never passes `None` for `api_key` and `pipeline_id`
AstraBert
approved these changes
Aug 14, 2025
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR adds support for LlamaCloud's regional API endpoints, allowing users to configure their preferred region (North America or Europe) while maintaining full backward compatibility.
Changes
src/notebookllama/utils.py- Centralized utility functions for LlamaCloud client creation with regional supportLLAMACLOUD_REGIONenvironment variableLlamaCloudConfigErrorConfiguration
LLAMACLOUD_REGION="eu"in your.envfileBackward Compatibility
This addresses the regional support issue discussed in #32