mirror of
https://github.com/zylon-ai/private-gpt.git
synced 2025-12-22 04:30:11 +01:00
fix: fix pytorch version to avoid wheel bug (#1123)
* fix: fix pytorch version * fix: settings env var regex and split * fix: add models folder for docker user
This commit is contained in:
parent
895588b82a
commit
24cfddd60f
5 changed files with 1150 additions and 480 deletions
|
|
@ -18,10 +18,18 @@ def test_environment_variables_are_loaded() -> None:
|
|||
|
||||
def test_environment_defaults_variables_are_loaded() -> None:
|
||||
sample_yaml = """
|
||||
replaced: ${TEST_REPLACE_ME:default}
|
||||
replaced: ${PGPT_EMBEDDING_HF_MODEL_NAME:BAAI/bge-small-en-v1.5}
|
||||
"""
|
||||
loaded = load_yaml_with_envvars(io.StringIO(sample_yaml), {})
|
||||
assert loaded["replaced"] == "default"
|
||||
assert loaded["replaced"] == "BAAI/bge-small-en-v1.5"
|
||||
|
||||
|
||||
def test_environment_defaults_variables_are_loaded_with_duplicated_delimiters() -> None:
|
||||
sample_yaml = """
|
||||
replaced: ${PGPT_EMBEDDING_HF_MODEL_NAME::duped::}
|
||||
"""
|
||||
loaded = load_yaml_with_envvars(io.StringIO(sample_yaml), {})
|
||||
assert loaded["replaced"] == ":duped::"
|
||||
|
||||
|
||||
def test_environment_without_defaults_fails() -> None:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue