diff --git a/core/cat/db/crud.py b/core/cat/db/crud.py index dc279793..787f9805 100644 --- a/core/cat/db/crud.py +++ b/core/cat/db/crud.py @@ -69,4 +69,7 @@ def upsert_setting_by_name(payload: models.Setting) -> models.Setting: query = Query() get_db().update(payload, query.name == payload.name) - return get_setting_by_name(payload.name) \ No newline at end of file + return get_setting_by_name(payload.name) + +def validate_presences(required: list, payload: dict): + return len([req for req in required if req not in payload]) > 0 diff --git a/core/cat/routes/setting/embedder_setting.py b/core/cat/routes/setting/embedder_setting.py new file mode 100644 index 00000000..e69de29b diff --git a/core/cat/routes/setting/llm_setting.py b/core/cat/routes/setting/llm_setting.py new file mode 100644 index 00000000..e69de29b diff --git a/core/tests/routes/setting/test_llm_setting.py b/core/tests/routes/setting/test_llm_setting.py new file mode 100644 index 00000000..e69de29b