Skip to content

Commit

Permalink
Merge pull request #962 from WolframResearch/bugfix/454752
Browse files Browse the repository at this point in the history
Fix for extra whitespace in W|A tool outputs
  • Loading branch information
rhennigan authored Nov 28, 2024
2 parents e33a804 + 90758bd commit 3e422ba
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
2 changes: 1 addition & 1 deletion PacletInfo.wl
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
PacletObject[ <|
"Name" -> "Wolfram/Chatbook",
"PublisherID" -> "Wolfram",
"Version" -> "1.5.2.13",
"Version" -> "1.5.2.14",
"WolframVersion" -> "14.1+",
"Description" -> "Wolfram Notebooks + LLMs",
"License" -> "MIT",
Expand Down
10 changes: 8 additions & 2 deletions Source/Chatbook/Formatting.wl
Original file line number Diff line number Diff line change
Expand Up @@ -1806,9 +1806,15 @@ makeToolCallOutputSection // beginDefinition;
makeToolCallOutputSection[ as: KeyValuePattern[ "Result" -> result_ ] ] := Enclose[
Module[ { formatter },
formatter = Confirm[ as[ "FormattingFunction" ], "FormattingFunction" ];
TextCell[ wideScrollPane @ formatter[ result, "Result" ], "Text", Background -> None ]
TextCell[
wideScrollPane @ formatter[ result, "Result" ],
"Text",
Background -> None,
FrameBoxOptions -> { BaselinePosition -> Automatic },
PaneBoxOptions -> { BaselinePosition -> Automatic }
]
],
throwInternalFailure[ makeToolCallOutputSection @ as, ## ] &
throwInternalFailure
];

makeToolCallOutputSection // endDefinition;
Expand Down

0 comments on commit 3e422ba

Please sign in to comment.