mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
[GH-ISSUE #460] error with m.get("role") when the message is a json #213
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#213
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?
Originally created by @BadWolf-63 on GitHub (Oct 2, 2026).
Original GitHub issue: https://github.com/Niko1221/Strata/issues/460
little problem with the management of json messages. Here the fix:
`def openai_to_messages(req: dict) -> tuple[list[dict], list[dict] | None, dict]:
"""OpenAI Chat Completions -> (template messages, template tools, template kwargs)."""
messages = []
`
@Niko1221 commented on GitHub (Oct 2, 2026):
Fixed in 0.1.35:
messagessent as a JSON string is decoded, and a list with non-object entries gets a 400 with a clear message. Both APIs, with tests. Thanks for the patch! RunSTART-HERE.bat(Linux:./setup.sh) once to update.