mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-30 09:14:59 +00:00
fixed json schema
This commit is contained in:
parent
2358b638b8
commit
f22ccf6195
1 changed files with 16 additions and 22 deletions
|
@ -26,7 +26,6 @@ class EditBlockFunctionCoder(Coder):
|
||||||
edits=dict(
|
edits=dict(
|
||||||
type="array",
|
type="array",
|
||||||
items=dict(
|
items=dict(
|
||||||
parameters=dict(
|
|
||||||
type="object",
|
type="object",
|
||||||
required=["path", "original_lines", "updated_lines"],
|
required=["path", "original_lines", "updated_lines"],
|
||||||
properties=dict(
|
properties=dict(
|
||||||
|
@ -37,18 +36,13 @@ class EditBlockFunctionCoder(Coder):
|
||||||
original_lines=dict(
|
original_lines=dict(
|
||||||
type="string",
|
type="string",
|
||||||
description=(
|
description=(
|
||||||
(
|
|
||||||
"Lines from the original file, including all"
|
"Lines from the original file, including all"
|
||||||
" whitespace, newlines, without skipping any lines"
|
" whitespace, newlines, without skipping any lines"
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
),
|
|
||||||
updated_lines=dict(
|
updated_lines=dict(
|
||||||
type="string",
|
type="string",
|
||||||
description=(
|
description="New content to replace the `original_lines` with",
|
||||||
"New content to replace the `original_lines` with"
|
|
||||||
),
|
|
||||||
),
|
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue