feat: allow to override config from project #399
Draft
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 MR allows to override some of the the global config keys with the project file. In particular we can override the environment variables. The project config and the main config are now merged in one object.
It also refactor the way in which the workspace is detected/constructed so that there is a central point where the logic is located.
Important
This PR enables overriding global configuration with project-specific settings, refactors workspace management, and adds tests for these changes.
config.py
.ProjectConfig
class for project-level settings.config.py
.get_workspace_dir()
to determine workspace directory.config.py
.SESSION_NAME
andWORKSPACE
environment variables for session management.logdir
andworkspace
parameters fromchat()
inchat.py
.cli.py
.test_config.py
.test_tools_rag.py
.This description was created by for 60f633a. It will automatically update as commits are pushed.