1
0
mirror of https://github.com/kmein/niveum synced 2026-03-16 10:11:08 +01:00

radio-news: use newer gemini model

This commit is contained in:
2026-02-15 16:43:04 +01:00
parent 15ab8ac8a8
commit 86b5e4da9f

View File

@@ -6,6 +6,9 @@
jq, jq,
yq, yq,
}: }:
let
model = "gemini-2.5-flash-lite";
in
writers.writeBashBin "radio-news" '' writers.writeBashBin "radio-news" ''
set -efu set -efu
PATH=$PATH:${ PATH=$PATH:${
@@ -57,5 +60,5 @@ writers.writeBashBin "radio-news" ''
EOF EOF
) )
echo "$REQUEST" | curl "https://generativelanguage.googleapis.com/v1beta/models/gemini-1.5-flash-8b:generateContent?key=$GEMINI_API_KEY" -s -H "Content-Type: application/json" -d @- echo "$REQUEST" | curl "https://generativelanguage.googleapis.com/v1beta/models/${model}:generateContent?key=$GEMINI_API_KEY" -s -H "Content-Type: application/json" -d @-
'' ''