Fix rendered config to include merged endpoints and resolved tracing

The old code mutated config_yaml via dict references (endpoints and
tracing dicts were modified in-place), so yaml.dump captured the
merged state. The refactored code used separate variables without
writing them back to config, causing the rendered YAML to miss
agent-inferred endpoints and resolved tracing config.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Adil Hafeez 2026-02-12 06:33:30 +00:00
parent c422f06d00
commit f427c6b408

View file

@ -84,6 +84,7 @@ def validate_and_render_schema():
config.get("agents", []), config.get("filters", [])
)
clusters = build_clusters(config.get("endpoints", {}), agent_endpoints)
config["endpoints"] = clusters
log.info("Defined clusters: %s", clusters)
validate_prompt_targets(config, clusters)
@ -91,6 +92,7 @@ def validate_and_render_schema():
tracing = validate_tracing(
config.get("tracing", {}), DEFAULT_OTEL_TRACING_GRPC_ENDPOINT
)
config["tracing"] = tracing
updated_providers, llms_with_endpoint, model_name_keys = process_model_providers(
listeners, config.get("routing", {})