mirror of
https://github.com/katanemo/plano.git
synced 2026-06-17 15:25:17 +02:00
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:
parent
c422f06d00
commit
f427c6b408
1 changed files with 2 additions and 0 deletions
|
|
@ -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", {})
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue