Skip to content

chat: harden caps check - #24973

Merged
pwilkin merged 1 commit into
masterfrom
caps-harden
Jun 25, 2026
Merged

chat: harden caps check#24973
pwilkin merged 1 commit into
masterfrom
caps-harden

Conversation

@pwilkin

@pwilkin pwilkin commented Jun 24, 2026

Copy link
Copy Markdown
Member

Overview

A weird edge case was reported by @tarruda in #24181 that the caps detection doesn't pass through corectly.

Additional information

Hardened the test so that it takes the more expressive template instead of the default one, since eg. some agents will occasionally run a non-tool-aware query (such as generating a title) that will trigger the non-tools path.

Requirements

@tarruda

tarruda commented Jun 24, 2026

Copy link
Copy Markdown
Contributor

This looks fine to me, I can't seem to reproduce serial only tool call behavior I saw in #24181

@pwilkin

pwilkin commented Jun 24, 2026

Copy link
Copy Markdown
Member Author

@ggml-org/maintainers need a second approval please.

@aldehir

aldehir commented Jun 25, 2026

Copy link
Copy Markdown
Contributor

Confused, does Step 3.7 provide two templates in its GGUF? I thought template variants are now mostly unused. For example, https://huggingface.co/bartowski/c4ai-command-r7b-12-2024-GGUF does have a tool use template. https://huggingface.co/unsloth/Step-3.7-Flash-GGUF does not.

I think change is harmless and technically valid but I don't believe it does anything meaningful. I haven't seen template variants used in any modern models.

@pwilkin
pwilkin merged commit 09cedfd into master Jun 25, 2026
23 of 25 checks passed
papamoose pushed a commit to papamoose/llama.cpp that referenced this pull request Jun 27, 2026
adrianhoehne pushed a commit to adrianhoehne/llama.cpp that referenced this pull request Jul 5, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants