OpenAI tool-call compatibility issue in flare that kills agentic loops
维护者通常 1 天内回复
还没有人认领这个 Issue。
评估
调研方向
Start by locating the completion stream code that raises “model called unregistered tool” for newly generated calls; the issue names no source file or test. Compare that path with the accepted history case, then trace how tool calls and recoverable errors reach clients. Done means an unregistered generated call can be handled by the client and the turn can continue; add coverage for that recovery path.
由索引模型根据 Issue 内容生成。
描述
What happens: when the model emits a tool_call whose function name isn't in the request's tools schema (e.g. run_commands instead of run_command), flare aborts the completion with model called unregistered tool …. Clients are designed to receive that call, return a "no such tool" result, and let the model correct itself in the same turn — the Open WebUI maintainer confirmed its loop does exactly that. Flare terminates the stream first, so the recovery never runs and the whole turn/agent loop dies. Seen live in OWUI: the loop just stops on that error.
Evidence:
The error is flare's own: model called unregistered tool … sits in the engine binary at offsets ~1127283/1127296 (/usr/local/bin/flare).
Control: the same unregistered name placed in history (assistant tool_calls + tool-role error result) is accepted — HTTP 200, model recovers and calls run_command correctly. So the rejection fires only on newly generated calls.
Black-box forcing didn't work (the model refuses to emit invalid names when instructed; 30 samples at temp 1.5, all run_command), but the check is deterministic once a bad name is generated — a canned invalid generation feeds straight into it.
vLLM/SGLang pass emitted tool calls through verbatim; name routing is the client's contract. That's why this never appeared before.
Suggested fix: don't hard-fail on an emitted name that isn't in the schema — either pass the call through as-is (client dispatches or errors), or surface it as a recoverable error event/tool-call so the client's own recovery can run.
- 主要语言
- Rust
- 星标
- 800
- 派生
- 106
- 平均合并
- 1 天 3 小时
- 30 天内合并 PR
- 100
环境准备
- 提供 Dockerfile 或 Docker Compose 文件
- 没有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
NVIDIA/hyperflare-inference 的其他 Issue
-
难度 2/5 1-3 小时 新手友好度 78/100
NVIDIA/hyperflare-inference#268 ·
维护者通常 1 天内回复
-
area:caching area:engram enhancement performance triage:design-review
难度 2/5 1-3 小时 新手友好度 72/100
NVIDIA/hyperflare-inference#230 · 1 条评论 ·
维护者通常 1 天内回复
-
难度 5/5 一周以上 新手友好度 15/100
NVIDIA/hyperflare-inference#278 ·
维护者通常 1 天内回复
-
难度 4/5 3-5 天 新手友好度 25/100
NVIDIA/hyperflare-inference#276 ·
维护者通常 1 天内回复
-
难度 4/5 3-5 天 新手友好度 35/100
NVIDIA/hyperflare-inference#271 ·
维护者通常 1 天内回复
查看 NVIDIA/hyperflare-inference 的全部 Issue
相似的 Issue
-
bug UI
难度 2/5 1-3 小时 新手友好度 70/100
wardian-app/Wardian#1746 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 82/100
jlcodes99/cockpit-tools#3125 ·
维护者通常 2 天内回复
-
bug user-sprint
难度 2/5 1-3 小时 新手友好度 72/100
Vondor/KassenSturz#967 ·
维护者通常 1 天内回复
-
area/ci
难度 1/5 1 小时以内 新手友好度 62/100
维护者通常 1 天内回复
-
[BUG] Incremental sync warns "no stored highest_uid" on every round for folders with no new mail未关闭bug
难度 2/5 1-3 小时 新手友好度 70/100
rustmailer/bichon#411 ·