Add web search base url #27
Merged
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 pull request refactors the generation of
.envfiles to be more modular and maintainable by introducing helper functions for building each configuration section and categorizing keys by prefix. It also updates the validation logic and corresponding tests to ensure all required keys are present, including the newWEB_SEARCH_BASE_URL.Key improvements and changes:
.env file generation refactor:
_add_embedding_section,_add_langfuse_section,_add_web_search_section,_add_weaviate_section,_add_other_keys_section) to modularize and organize the construction of different configuration sections in the.envfile. These helpers categorize keys by their prefix for cleaner output. [1] [2]create_env_filefunction now filters out metadata fields, categorizes global keys, and uses the new helper functions to assemble the.envfile, improving readability and maintainability.Validation logic update:
validate_env_fileto includeWEB_SEARCH_BASE_URLas a required key, ensuring stricter and more accurate validation of generated.envfiles.Test updates:
test_cli.pyandtest_utils.pyto include the new required keyWEB_SEARCH_BASE_URL, keeping tests in sync with validation requirements. [1] [2]