mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
[PR #1664] [CLOSED] serve: a content part the server does not read is a 400 on chat and messages, as on responses #3593
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#3593
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/1664
Author: @midagedev
Created: 10/9/2026
Status: ❌ Closed
Base:
main← Head:unread-content-parts📝 Commits (1)
8b1f2d5serve: a content part the server does not read is a 400 on chat and messages, as on responses📊 Changes
2 files changed (+151 additions, -9 deletions)
View changed files
📝
serve/frontend.py(+50 -9)📝
serve/test_frontend.py(+101 -0)📄 Description
Summary
On
/v1/chat/completionsafileorinput_audiopart, and on/v1/messagesadocumentblock (also inside atool_result), were dropped without a word. The request got a 200 and the model answered about a file it never saw./v1/responsesalready refuses the same input; chat and messages now give the same 400, naming where the part is.What changed
serve/frontend.py:_check_partsruns while a request is converted, e.g.messages[2].content[1].type: content parts of type 'document' are not supported (text and images are). Text, images, thinking, tool_use and tool_result read as before.redacted_thinkingis still dropped (another server's encrypted reasoning). A chatrefusalpart now reads as its text, as on/v1/responses.serve/test_frontend.py: seven tests, one of them checking that text and image requests render the same prompt as before.Extra Notes
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.