Skip to content

fix(helm): preserve explicit ModelConfig streaming option - #3238

Open
YamonBot wants to merge 1 commit into
kagent-dev:mainfrom
YamonBot:fix/helm-modelconfig-stream
Open

YamonBot wants to merge 1 commit into
kagent-dev:mainfrom
YamonBot:fix/helm-modelconfig-stream

Conversation

@YamonBot

Copy link
Copy Markdown

Problem

ModelConfig already supports spec.stream, but the Helm template ignores a provider's explicit streaming option. An OpenAI-compatible provider that needs non-streaming responses cannot be configured through chart values.

Change

Render spec.stream only when the selected provider defines the key. hasKey preserves explicit false; omitted values retain the existing API default. Document the provider option and cover omitted, false, true, and a second provider.

Validation

  • make helm-version VERSION=1.0.0-alpha13
  • Official helm-unittest v1.2.1: untt-macos-arm64 -f 'tests/modelconfig_test.yaml' helm/kagent — 18 tests passed.
  • git diff --check

No CRD or runtime API change. Commit is DCO signed off.

Signed-off-by: YamonBot <141118378+YamonBot@users.noreply.github.com>
@YamonBot
YamonBot requested a review from a team as a code owner October 16, 2026 03:12
@github-actions github-actions Bot added the bug Something isn't working label Oct 16, 2026
Comment thread helm/kagent/values.yaml

providers:
# Each provider can set `stream: false` to disable LLM response streaming.
# When omitted, ModelConfig uses its API default (true).

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Can you add the value here so it's documented

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants