Skip to content

fix(chat): omit tool choice on tool-free turns - #362

Merged
Patel230 merged 1 commit into
mainfrom
fix/tool-choice-without-tools
Nov 3, 2026
Merged

Patel230 merged 1 commit into
mainfrom
fix/tool-choice-without-tools

Conversation

@Patel230

@Patel230 Patel230 commented Nov 3, 2026 •

Copy link
Copy Markdown
Contributor

Small-talk turns such as “Who are you?” sent tool_choice: "none" without any tools, causing strict OpenAI-compatible gateways to reject the request with HTTP 400. Omit tool choice when building these turns; the host continues to suppress unsolicited tool execution.

Update the existing tool-free conversation checks and add regression coverage for the reported “Hi” → “Who are you?” sequence in one session. Coding turns retain their tools.

Validation: engine suite passed with the race detector; make fmt-check lint build passed with zero lint issues. reflect verify passed all 156 Go package checks; its overall result failed because the existing local security log has a broken hash chain at entry 200.

@Patel230
Patel230 merged commit 9301ba0 into main Nov 3, 2026
23 checks passed
@Patel230
Patel230 deleted the fix/tool-choice-without-tools branch November 3, 2026 16:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant