Skip to content

feat: Reduce whitespace in tool responses by not formatting JSON#284

Merged
d3xter666 merged 1 commit intomainfrom
feat/reduced-whitespace
Mar 23, 2026
Merged

feat: Reduce whitespace in tool responses by not formatting JSON#284
d3xter666 merged 1 commit intomainfrom
feat/reduced-whitespace

Conversation

@RandomByte
Copy link
Member

Based on my research, formatted JSON (i.e. using indentation) does not
seem to lead to improved LLM performance. This indicates that whitespace
tokens within JSON basically have no effect and can be removed safely.

By removing whitespaces, we can save on the overall token consumption
for affected tool calls.

Based on my research, formatted JSON (i.e. using indentation) does not
seem to lead to improved LLM performance. This indicates that whitespace
tokens within JSON basically have no effect and can be removed safely.

By removing whitespaces, we can save on the overall token consumption
for affected tool calls.
@RandomByte RandomByte requested a review from a team March 20, 2026 14:18
@RandomByte RandomByte requested review from a team and matz3 March 20, 2026 14:33
@d3xter666 d3xter666 merged commit d436789 into main Mar 23, 2026
18 checks passed
@d3xter666 d3xter666 deleted the feat/reduced-whitespace branch March 23, 2026 09:06
@openui5bot openui5bot mentioned this pull request Mar 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants