From 732eae532c8e8632db95ab80e0dde5071e744386 Mon Sep 17 00:00:00 2001 From: sigoden Date: Wed, 10 Jul 2024 18:53:32 +0800 Subject: feat: adjust the way of returning data to LLM (#69) --- tools/search_brave.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tools/search_brave.sh') diff --git a/tools/search_brave.sh b/tools/search_brave.sh index 553bfc7..9886944 100755 --- a/tools/search_brave.sh +++ b/tools/search_brave.sh @@ -14,8 +14,8 @@ main() { curl -fsSL "$url" \ -H "Accept: application/json" \ -H "X-Subscription-Token: $BRAVE_API_KEY" | \ - jq '[.web.results[] | {title: .title, url: .url, description: .description}]' + jq '[.web.results[] | {title: .title, url: .url, description: .description}]' \ + >> "$LLM_OUTPUT" } eval "$(argc --argc-eval "$0" "$@")" - -- cgit v1.2.3