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#3287
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/1175
Author: @Avicennasis
Created: 10/6/2026
Status: ❌ Closed
Base:
main← Head:fix/tools-schema-object📝 Commits (1)
f22fdb0serve: a tool's "parameters" / "input_schema" that is not an object is a 400 naming it, not an AttributeError on its first call (#592 follow-up)📊 Changes
2 files changed (+34 additions, -1 deletions)
View changed files
📝
serve/frontend.py(+10 -1)📝
serve/test_server.py(+24 -0)📄 Description
Follow-up to #635 / 0.1.39's #592 fix, as you offered there: the schema check.
_tool_listtakes a tool with a name and lets its schema be anything. Aparameters(OpenAI) orinput_schema(Anthropic) that is a string, a number or a list passes the 400 and reachesparse_tool_callandOutputParseras the tool's schema, whose.get("properties")raisesAttributeError: 'str' object has no attribute 'get'in the request thread the first time the model calls that tool. On 0.1.40.1'smain, with the test suite'sCallingEngineand atool_choicenaming a tool whoseparametersis"x": a non-streaming request gets the connection closed with no response (RemoteDisconnected); a streaming one gets a 200 and a stream that ends after the first, empty delta, with no error and no finish_reason.Now a schema is an object when it is there (absent, null and
{}go on as before); anything else is a 400 naming the tool's index, its name and the field, before anything is sent, on both APIs with the key each one uses. The test covers a string, a list and a number on/v1/chat/completions(wrapped and bare) and a string, a list and a boolean on/v1/messages, plus the three shapes that still answer.ClientShapespasses as a whole.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.