Skip to content

fix(ci): bound Discord release summaries - #11695

Merged
mudler merged 2 commits into
masterfrom
ci-health/release-discord-limit
Aug 24, 2026
Merged

fix(ci): bound Discord release summaries#11695
mudler merged 2 commits into
masterfrom
ci-health/release-discord-limit

Conversation

@localai-org-maint-bot

Copy link
Copy Markdown
Collaborator

Description

This PR prevents release notifications from exceeding Discord’s 2,000-character message limit. The summarization prompt now requests a complete message under 1,800 characters and limits generation to 450 tokens. Response extraction enforces the same 1,800-character cap, so model variance cannot make Discord reject the notification.

Fixes the release notification failure in https://github.com/mudler/LocalAI/actions/runs/32389440468.

Notes for Reviewers

Verification:

  • Exercised the exact jq extraction with a 2,500-character response and confirmed an output length of 1,800.
  • Exercised the extraction with UTF-8 emoji content.
  • git diff --check

Signed commits

  • Yes, I signed my commits.
  • Documentation updated (docs/content/) for user-facing changes, or not applicable

The release model can return more than Discord's 2,000-character
message limit. Discord then rejects the entire release notification.

Ask the model for a smaller response and truncate extracted content to
1,800 characters before the notification step. The smaller bound leaves
room below Discord's hard limit when model output varies.

Assisted-by: Codex:gpt-5
NodeCommandSender now requires PingNode. The endpoint test stub must
implement it before the package can compile.

Assisted-by: Codex:gpt-5 [Codex]
@mudler
mudler merged commit a8bc64c into master Aug 24, 2026
69 of 72 checks passed
@mudler
mudler deleted the ci-health/release-discord-limit branch August 24, 2026 07:32
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.

2 participants