mirror of
https://github.com/Hopiu/llm.git
synced 2026-04-14 18:21:05 +00:00
sort_keys=False in --save, closes #798
This commit is contained in:
parent
98cccd294a
commit
b1fe2e9857
2 changed files with 11 additions and 3 deletions
|
|
@ -379,6 +379,7 @@ def prompt(
|
|||
to_save,
|
||||
indent=4,
|
||||
default_flow_style=False,
|
||||
sort_keys=False,
|
||||
),
|
||||
"utf-8",
|
||||
)
|
||||
|
|
|
|||
|
|
@ -97,10 +97,17 @@ def test_templates_list(templates_path, args):
|
|||
{"system": "write python", "extract": True},
|
||||
None,
|
||||
),
|
||||
# So should schemas
|
||||
# So should schemas (and should not sort properties)
|
||||
(
|
||||
["--schema", '{"properties": {"name": {"type": "string"}}}'],
|
||||
{"schema_object": {"properties": {"name": {"type": "string"}}}},
|
||||
[
|
||||
"--schema",
|
||||
'{"properties": {"b": {"type": "string"}, "a": {"type": "string"}}}',
|
||||
],
|
||||
{
|
||||
"schema_object": {
|
||||
"properties": {"b": {"type": "string"}, "a": {"type": "string"}}
|
||||
}
|
||||
},
|
||||
None,
|
||||
),
|
||||
),
|
||||
|
|
|
|||
Loading…
Reference in a new issue