feat: Add figures and captions to blog post on code in JSON

This commit is contained in:
Paul Gauthier 2024-08-15 10:33:22 -07:00 committed by Paul Gauthier (aider)
parent a2882f4104
commit 2bb75dc11f

View file

@ -152,6 +152,8 @@ function createStripedCanvas(isStrict) {
}
</script>
> Figure 1: Benchmark scores of models using either plain markdown text or JSON to return code.
> Models produce better code when they return it as plain markdown text, as compared to wrapping it in JSON for a tool function call.
## Abstract
@ -421,6 +423,9 @@ document.addEventListener('DOMContentLoaded', function () {
});
</script>
> Figure 2: Number of `SyntaxError` and `IndentationError` errors found in model generated code.
> Models tend to make more syntactic errors when asked to wrap code in JSON.
## Conclusions