mirror of
https://github.com/zylon-ai/private-gpt.git
synced 2025-12-22 20:12:55 +01:00
fix: Remove global state (#1216)
* Remove all global settings state * chore: remove autogenerated class * chore: cleanup * chore: merge conflicts
This commit is contained in:
parent
f394ca61bb
commit
022bd718e3
24 changed files with 286 additions and 190 deletions
|
|
@ -13,4 +13,6 @@ def _absolute_or_from_project_root(path: str) -> Path:
|
|||
models_path: Path = PROJECT_ROOT_PATH / "models"
|
||||
models_cache_path: Path = models_path / "cache"
|
||||
docs_path: Path = PROJECT_ROOT_PATH / "docs"
|
||||
local_data_path: Path = _absolute_or_from_project_root(settings.data.local_data_folder)
|
||||
local_data_path: Path = _absolute_or_from_project_root(
|
||||
settings().data.local_data_folder
|
||||
)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue