diff --git a/aider/website/_includes/code-in-json-benchmark.js b/aider/website/_includes/code-in-json-benchmark.js index 8ac4b7dd3..96085fbe1 100644 --- a/aider/website/_includes/code-in-json-benchmark.js +++ b/aider/website/_includes/code-in-json-benchmark.js @@ -42,7 +42,6 @@ document.addEventListener('DOMContentLoaded', function () { data: data, options: { responsive: true, - maintainAspectRatio: false, scales: { x: { title: { @@ -105,16 +104,6 @@ document.addEventListener('DOMContentLoaded', function () { }] }; - // Adjust chart height based on screen width - function adjustChartHeight() { - var container = document.getElementById('passRateChart'); - container.height = 600; - } - - // Call the function initially and on window resize - adjustChartHeight(); - window.addEventListener('resize', adjustChartHeight); - function createStripedCanvas(isStrict) { const patternCanvas = document.createElement('canvas'); const patternContext = patternCanvas.getContext('2d'); diff --git a/aider/website/_includes/code-in-json-syntax.js b/aider/website/_includes/code-in-json-syntax.js index 8fdfc5ee0..1916dd2db 100644 --- a/aider/website/_includes/code-in-json-syntax.js +++ b/aider/website/_includes/code-in-json-syntax.js @@ -1,4 +1,4 @@ - + diff --git a/aider/website/_posts/2024-08-14-code-in-json.md b/aider/website/_posts/2024-08-14-code-in-json.md index 59cc444f4..fea3507f0 100644 --- a/aider/website/_posts/2024-08-14-code-in-json.md +++ b/aider/website/_posts/2024-08-14-code-in-json.md @@ -12,12 +12,11 @@ nav_exclude: true # LLMs are bad at returning code in JSON -Current LLMs have support for returning properly formatted JSON, -making it easier for clients to reliably parse complex responses. -It therefore seems attractive for -AI coding applications ask LLMs to return code in structured JSON replies. -Unfortunately, -LLMs write worse code when asked to wrap it in JSON, harming their ability +AI coding applications should avoid asking LLMs to return code as part of a structured +JSON response. +Even though many current LLMs have special support for returning JSON, +it causes LLMs to write worse code and +harms their ability to correctly solve coding tasks. On a variant of the aider code editing benchmark, asking for JSON-wrapped code