PulseAugur
EN
LIVE 18:17:33

llama-server API fails to apply tool_choice and stop_sequences correctly

The llama-server project has identified two significant issues when using its Anthropic-compatible API. Firstly, the `tool_choice` parameter, intended to guide model function calls, is not being correctly applied, leading the model to select the wrong tool or ignore the `none` option entirely. Secondly, the `stop_sequences` functionality is prematurely terminating responses by matching against the model's internal reasoning process rather than just its final output, resulting in incomplete or empty answers. These bugs were observed on a specific build of llama.cpp with the Qwen3-0.6B model and share similarities with previously reported issues in vLLM. AI

IMPACT These bugs in llama-server's Anthropic API emulation could hinder its adoption for tool-using LLM applications.

RANK_REASON Bug report and analysis of an open-source LLM serving tool.

Read on dev.to — LLM tag →

AI-generated summary · Google Gemini · from 1 sources. How we write summaries →

llama-server API fails to apply tool_choice and stop_sequences correctly

How we ranked this

Signal score
0 / 100
Composite score across the factors below. Higher = stronger signal that this story matters right now.
Newsworthiness bucket
Tool
Bug report and analysis of an open-source LLM serving tool.
Source corroboration
Single-source cluster
Only one publisher covered this so far. Single-source stories can still rank when the publisher is high-authority, but they lack cross-source corroboration.
Topics
product, other
Editorial topic classification. Feeds into how the story surfaces on /topic/<slug> hub pages and into the per-entity coverage mix.
AI-industry relevance
High
Clearly on-topic for AI-industry coverage.
Story freshness
9 days old
Aged out of breaking-news scoring windows; ranking reflects the durable signal from the full source set.

Full methodology in our editorial standards.

COVERAGE [1]

  1. dev.to — LLM tag TIER_1 English(EN) · The Homelab Postmortem ·

    llama-server's Anthropic API ignores tool_choice and stops inside reasoning

    <p><strong>TL;DR</strong>: llama-server's Anthropic-compatible <code>/v1/messages</code> endpoint accepts two request controls and doesn't apply them. A forced tool, <code>tool_choice: {"type": "tool", "name": "get_time"}</code>, is treated as "call some tool": with <code>get_wea…