Skip to content

Commit

Permalink
Block PrintTemporary when running WebSearch tool
Browse files Browse the repository at this point in the history
  • Loading branch information
rhennigan committed Oct 31, 2023
1 parent 65a3766 commit 5bd53bd
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion Source/Chatbook/Tools.wl
Original file line number Diff line number Diff line change
Expand Up @@ -1271,7 +1271,11 @@ webImageSearch // beginDefinition;

webImageSearch[ KeyValuePattern[ "query" -> query_ ] ] := webImageSearch @ query;
webImageSearch[ query_String ] := webImageSearch @ SearchQueryString @ query;
webImageSearch[ query_SearchQueryString ] := webImageSearch[ query, WebImageSearch[ query, "ImageHyperlinks" ] ];

webImageSearch[ query_SearchQueryString ] :=
Block[ { PrintTemporary },
webImageSearch[ query, WebImageSearch[ query, "ImageHyperlinks" ] ]
];

webImageSearch[ query_, { } ] := <|
"Result" -> { },
Expand Down

0 comments on commit 5bd53bd

Please sign in to comment.