Tool calling serializes boolean arguments as strings with Qwen3.5 ("True" instead of true)
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 3/5
- 見積もり時間
- 1〜2日
- 初心者へのやさしさ
- 65/100
調査の方向性
The issue is in the tool-call argument conversion/serialization step. Look at the code that parses the model's raw tool output (like <parameter=accepted>\nTrue\n</parameter>) and converts it to JSON. The bug likely resides where string values are not coerced to the declared JSON Schema type (boolean). Start by searching for functions handling tool argument serialization in the codebase, then write a test using the provided curl command to verify the fix produces {"accepted":true}.
索引モデルが issue の本文から書いたものです。
説明
Description
FastFlowLM v1.0.6 serializes a tool argument defined as JSON Schema
boolean as a JSON string when using qwen3.5:9b.
The tool schema explicitly defines:
"accepted": {
"type": "boolean"
}
However, FastFlowLM returns:
{"accepted":"True"}
instead of:
{"accepted":true}
This causes OpenAI-compatible clients that validate tool arguments
against the supplied JSON Schema to reject the tool call.
Environment
FastFlowLM: v1.0.6
Model: qwen3.5:9b
Linux portable build: fastflowlm_1.0.6_linux.tar.gz
API: /v1/chat/completions
Minimal reproducer
curl -s http://127.0.0.1:8000/v1/chat/completions
-H 'Content-Type: application/json'
-d '{"model":"qwen3.5:9b","stream":false,"messages":[{"role":"user","content":"Call confirm_result with accepted set to true."}],"tools":[{"type":"function","function":{"name":"confirm_result","description":"Confirm the result","parameters":{"type":"object","properties":{"accepted":{"type":"boolean"}},"required":["accepted"]}}}],"tool_choice":{"type":"function","function":{"name":"confirm_result"}}}'
Actual result
FastFlowLM returns the tool arguments as:
"arguments":"{"accepted":"True"}"
Decoded:
{
"accepted": "True"
}
The value is a JSON string.
Expected result
The tool arguments should preserve the type specified by the JSON
Schema:
"arguments":"{"accepted":true}"
Decoded:
{
"accepted": true
}
The value should be a JSON boolean.
Additional information
The model's raw tool output contains:
<parameter=accepted>
True
FastFlowLM then converts this to:
{"accepted":"True"}
So it appears that the tool-call argument conversion/serialization step
does not coerce the generated value according to the parameter type
declared in the supplied tool JSON Schema.
This is reproducible with a minimal request and does not require a large
context or a multi-turn conversation.
- 主要言語
- C++
- スター
- 2.1k
- フォーク
- 184
- 平均マージ
- 12時間 22分
- マージ済み PR(30日)
- 239
環境構築
- Dockerfile または Docker Compose ファイルあり
- プルリクエストのテンプレートなし
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
ROCm/FastFlowLM のほかの issue
-
Update Gemma tokenizer.json after Google's recent fix対応中かも @four1er が 6 日前に担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
ROCm/FastFlowLM#1057 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
ROCm/FastFlowLM#757 ·
メンテナーはふだん 1 日以内に返信
-
No valid checkpoint to restore + Max length reached on multi-turn tool calls (Qwen3.6-MoE, NPU)オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
ROCm/FastFlowLM#744 · コメント 2 件 ·
メンテナーはふだん 1 日以内に返信
-
Truncated tool call is emitted as a complete one (unterminated heredoc reaches the client)対応中かも @Javinator9889 が 72 日前に担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
ROCm/FastFlowLM#741 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
Download timeout対応中かも @stdevPavelmc が 200 日前に担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 74/100
ROCm/FastFlowLM#520 · コメント 7 件 ·
メンテナーはふだん 1 日以内に返信
ROCm/FastFlowLM の issue をすべて見る
似ている issue
-
bug good first issue help wanted
難易度 2/5 1〜3時間 初心者へのやさしさ 88/100
メンテナーはふだん 1 日以内に返信
-
difficulty:easy func:gui prio:normal type:bug
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
NatronGitHub/Natron#2118 ·
メンテナーはふだん 1 日以内に返信
-
Bug
難易度 1/5 1時間未満 初心者へのやさしさ 82/100
-
bug difficulty:easy prio:low
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
NatronGitHub/openfx-io#523 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 66/100
ArduPilot/ardupilot_gazebo#195 ·