Commit c7cca5c
fix(c-generative-ui): use gpt-5 + minimal reasoning for planner LLM
gpt-5-mini ignored the "EXACTLY ONE tool" directive added in PR #363
and kept calling all four data tools on every filter follow-up.
Verified live: my prompt rewrite was strict and explicit ("call EXACTLY
ONE tool", "Do NOT call the other tools") but gpt-5-mini still fanned
out — the model's default reasoning prefers thoroughness over literal
directive-following.
Split the LLMs:
- `_llm` (gpt-5-mini) — unchanged for shell-gen + respond. Cheap and
good enough for prose + JSON-spec emission.
- `_planner_llm` (gpt-5, reasoning_effort='minimal') — bound to tools,
used in plan_tools. gpt-5 follows directives more precisely;
reasoning_effort='minimal' suppresses the "let me be thorough"
deliberation that drives the fan-out.
Standalone smoke (separate from chrome):
prompt: "Filter to cancelled flights only"
result: ['query_recent_disruptions'] ← exactly one
Chrome MCP end-to-end:
backend log confirms AI tool_calls: ['query_recent_disruptions'],
data grid updates to 3 cancelled rows.
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>1 parent 10acc90 commit c7cca5c
2 files changed
Lines changed: 30 additions & 2 deletions
File tree
- cockpit
- chat/generative-ui/python/src
- langgraph/streaming/python/src
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
23 | | - | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
24 | 38 | | |
25 | 39 | | |
26 | 40 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
23 | | - | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
24 | 38 | | |
25 | 39 | | |
26 | 40 | | |
| |||
0 commit comments