ai text selection response: dont exit if no ollama model loaded

This commit is contained in:
end-4
2025-04-06 16:20:35 +02:00
parent 27a6722b31
commit caf2ddc0cc
@@ -10,7 +10,7 @@ If you do not know the answer, simply say 'No info available'. \
Only respond for the appropriate case and use as little text as possible.\
The content:"
first_loaded_model=$("$(dirname "$0")/show-loaded-ollama-models.sh" -j | jq -r '.[0].model')
first_loaded_model=$("$(dirname "$0")/show-loaded-ollama-models.sh" -j | jq -r '.[0].model' 2>/dev/null) || first_loaded_model=""
model=${first_loaded_model:-"llama3.2"}
# Parse command-line arguments