fix: align config.yaml structure with Pydantic AppConfig schema
config.yaml nested cheshire_cat and face_detector under the 'services' key,
and llama URLs under 'services.llama'. But AppConfig expects:
- services -> {url, amd_url} (llama endpoints directly)
- cheshire_cat -> top-level key
- face_detector -> top-level key
Because Pydantic silently ignores extra fields, ServicesConfig received
{llama: {...}, cheshire_cat: {...}, face_detector: {...}} and none matched
its 'url'/'amd_url' fields, so ALL service config from YAML was silently
ignored and Pydantic defaults were always used instead.
Flattened services to contain url/amd_url directly, and moved cheshire_cat
and face_detector to top-level keys matching the AppConfig model. Verified
both AppConfig(**yaml_data) and config_manager dot-path traversal work.
This commit is contained in:
@@ -6,7 +6,6 @@
|
|||||||
|
|
||||||
# Service Endpoints
|
# Service Endpoints
|
||||||
services:
|
services:
|
||||||
llama:
|
|
||||||
url: http://llama-swap:8080
|
url: http://llama-swap:8080
|
||||||
amd_url: http://llama-swap-amd:8080
|
amd_url: http://llama-swap-amd:8080
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user