common : support manually triggering the reasoning budget end sequence (#23949)

This commit is contained in:
Aldehir Rojas
2026-06-01 11:37:11 +02:00
committed by GitHub
parent e22b0de60d
commit 5254a7994d
5 changed files with 108 additions and 1 deletions
+3
View File
@@ -87,6 +87,9 @@ std::vector<llama_token> common_sampler_sample_and_accept_n(struct common_sample
uint32_t common_sampler_get_seed(const struct common_sampler * gsmpl);
// force the reasoning budget sampler (if any) to begin forcing its end sequence now.
bool common_sampler_reasoning_budget_force(struct common_sampler * gsmpl);
// helpers
// access the internal list of current candidate tokens