Skip to content

chore(config): regroup config.yaml by section and fix stale comments - #98

Open
Mushtaq-BGA wants to merge 2 commits into
mainfrom
chore/config-yaml-cleanup
Open

Mushtaq-BGA wants to merge 2 commits into
mainfrom
chore/config-yaml-cleanup

Conversation

@Mushtaq-BGA

Copy link
Copy Markdown
Contributor

config.yaml (seeded into env/<name>/config.inference.yaml by init inference) had grown long and some comments no longer matched the code. This regroups it by section with one short comment per setting, and sets auth_type explicitly. Same change as on release-1.2 in #94.

Fixes

  • model_deploy_flags examples --skip-download and --no-wait are not model-manager deploy options; setting either stopped the install's model step with Unknown option. Example is now --wait-timeout 1800. The named deploy-default-models.sh no longer exists.
  • Removed the nonexistent install inference --skip-models flag (SKIP_MODEL_DEPLOYMENT=true is documented in configuration.md).
  • Header described the old -e @ext/enterprise.ai-inference/config.yaml load; init now copies the file into the env.
  • auth_type: "jwt" is active instead of commented, so the seeded config shows the auth mode. Agent Toolkit's config loads later and overrides it; global_config.yaml overrides both. An env that still sets the deprecated auth_provider: litellm now gets the preflight "must agree" error instead of a silent mapping.

Layout

API authentication, Keycloak, AI gateway, KServe, LiteLLM, Guardrails, Langfuse, CPU pinning, Models, vLLM Semantic Router, Hybrid Router. 118 → 76 lines.

Tests

  • Active keys parse to the same values as before (auth_type aside): keycloak_realm, keycloak_client_id, ai_gateway_provider, envoy_ai_gateway_namespace, kubernetes_cpu_policy, llm_services_deploy_models.
  • Every documented default checked against roles/*/defaults (KServe 0.18.0/0.21.0, EAIGW 1.2.1, LiteLLM v1.105.1, TTL 600, token 900); example models qwen3guard, qwen3-4b, qwen3-coder-30b exist in models.yaml.
  • yamllint 1.38.0 passes; nothing in this repo or Toolkit Manager parses the file's text.

The seeded config.inference.yaml now shows the active auth mode. Agent Toolkit's
config loads later and overrides it; global_config.yaml overrides both.

Signed-off-by: Ahmed, Mushtaq <mushtaq.ahmed@intel.com>
(cherry picked from commit 6f45dd9)
- model_deploy_flags examples used options model-manager rejects (--skip-download,
  --no-wait) and a script that no longer exists; use --wait-timeout
- drop the nonexistent --skip-models flag and the old -e @ext/... load path
- Guardrails get their own section; one short comment per setting
Active values are unchanged.

Signed-off-by: Ahmed, Mushtaq <mushtaq.ahmed@intel.com>
(cherry picked from commit 4a4be80)
Copilot AI balanced review requested due to automatic review settings November 30, 2026 06:17
@sys-aibot

sys-aibot commented Nov 30, 2026 •

Copy link
Copy Markdown

Claude finished @Mushtaq-BGA's task in 48s —— View job


Verdict: LGTM

No blocking findings. I checked auth_type: "jwt" going from commented to active against model_manager/core/routing.py:23-35. With no value set, the code already resolved to keycloak, so the result is the same. The Ansible roles all use auth_type | default('jwt'), so they behave as before. The installer still passes auth_type to model-manager explicitly (roles/llm_services/tasks/install.yaml:248). The variables named in the new comments (inference_hostname, vllm_sr_route_models, mm_kubelet_threads_per_core, …) exist in the role defaults. No model_manager behaviour changes, so no tests are needed.

Suggestions

  1. config.yaml:39: path mode is no longer mentioned. The old comment gave both forms of the inference host: inference.<base_domain_name> and <base_domain_name>/inference in path mode. The new line shows only the subdomain form. Someone on routing_mode: path could think inference_hostname controls their endpoint, but it is inference_path (roles/envoy_ai_gateway/defaults/main.yaml:34-36). A short # path mode: <base_domain_name>/inference would keep the docs right for both modes. Fix this →
  2. config.yaml:20: the second clause doesn't match the first. "people always sign in through Keycloak" is true in both modes, but here it reads as if it explained why Agent Toolkit overrides the value. The PR body says global_config.yaml overrides both, but the comment doesn't, even though that is the precedence model-manager uses (routing.py:29). Suggested wording: # Overridden by Agent Toolkit's config and global_config.yaml. Users always sign in via Keycloak; this picks the API credential.
  3. config.yaml:169: hybrid_router_tier_candidates has lost its description. The old "deployed models per complexity tier" was the only hint that the names must be deployed models. It's worth keeping as a trailing comment, like the other keys have.

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Changes recommended

The documented LANGFUSE_ADMIN_PASSWORD export is ignored by installation, so users receive a random password rather than their chosen one; the instructions should instead specify setting langfuse_admin_password before the first install.

1 open issue
What changed in this PR

This PR reorganizes the seeded inference configuration into shorter, feature-based sections and refreshes stale guidance.

Changes:

  • Groups settings by component while preserving existing active values, except for explicitly setting auth_type: "jwt".
  • Updates initialization guidance and replaces obsolete model-deployment flag examples.
  • Aligns the configuration guide with the explicit authentication setting.
File Description
docs/​configuration/​configuration.md Shows auth_type: "jwt" as an active setting.
config.yaml Regroups settings, shortens comments, updates examples, and explicitly sets authentication mode.

Review effort: Balanced

Comment thread config.yaml
# --- LLM Services ---
# langfuse_hostname: "langfuse.<base_domain_name>"
# langfuse_admin_email: "admin@<base_domain_name>"
# Admin password: export LANGFUSE_ADMIN_PASSWORD before install.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants