Skip to content

Commit

Permalink
refactor: disable diff system & format option 🚫
Browse files Browse the repository at this point in the history
  • Loading branch information
pelikhan committed Oct 15, 2024
1 parent 4d79d25 commit 710a315
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/core/src/promptdom.ts
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,7 @@ function renderDefNode(def: PromptDefNode): string {
while (dfence && body.includes(dfence)) {
dfence += "`"
}
const diffFormat = body.length > 500 ? "preferred_diff_format=DIFF" : ""
const diffFormat = "" // body.length > 500 ? "preferred_diff_format=DIFF" : ""

Check failure on line 246 in packages/core/src/promptdom.ts

View workflow job for this annotation

GitHub Actions / build

Unused variable 'diffFormat'. Consider removing it if it's not used.
const res =
(name ? name + ":\n" : "") +
dfence +
Expand Down
2 changes: 1 addition & 1 deletion packages/core/src/systems.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ export function resolveSystems(
if (/\Wchangelog\W/i.test(jsSource)) systems.push("system.changelog")
else if (/\Wfile\W/i.test(jsSource)) {
systems.push("system.files")
systems.push("system.diff")
// systems.push("system.diff")

Check failure on line 48 in packages/core/src/systems.ts

View workflow job for this annotation

GitHub Actions / build

There is a commented out code. If it's not needed, consider removing it.
// Add file schema system if schema is used
if (useSchema) systems.push("system.files_schema")
}
Expand Down

0 comments on commit 710a315

Please sign in to comment.