mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
Labels
No labels
needs-format
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Niko1221/Strata#4388
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/Niko1221/Strata/pull/2996
Author: @LostDakota
Created: 10/18/2026
Status: ❌ Closed
Base:
main← Head:serve-report-dropped-tool-calls📝 Commits (1)
506bdb0serve: "report_dropped_tool_calls": true names the cut tool calls a whole OpenAI answer leaves out (#211, opt-in)📊 Changes
3 files changed (+33 additions, -3 deletions)
View changed files
📝
docs/DETAILS.md(+5 -0)📝
serve/server.py(+9 -3)📝
serve/test_server.py(+19 -0)📄 Description
What it changes
A whole (non-streamed) OpenAI answer that ends in the middle of a tool call leaves that call out (#211, fixed in 0.1.31 by #231), because many SDKs run any call that is present. That is right, but the client then can't tell an answer that lost a call apart from one that finished.
"report_dropped_tool_calls": trueinstrata-<model>.jsonaddsstrata_dropped_tool_callsto the message: the name and the argument length (in characters) of each call left out.What it leaves alone
openai_collectbuilds the same message as before unless the switch is on, so the default answer is byte-identical.finish_reason.How I checked
serve/test_server.py: the existingtest_collect_keeps_calls_whose_arguments_parsenow also checks that the field is absent by default. The newtest_collect_names_the_dropped_calls_when_askedchecks the field forstopandlength, and checks it is absent fortool_callsand when nothing was cut.python -m unittest serve.test_server: 338 tests, OK (Linux, the project's.venv).🤖 Generated with Claude Code
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.