forked from Shinonome/dots-hyprland
ai text selection response: dont exit if no ollama model loaded
This commit is contained in:
@@ -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.\
|
Only respond for the appropriate case and use as little text as possible.\
|
||||||
The content:"
|
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"}
|
model=${first_loaded_model:-"llama3.2"}
|
||||||
|
|
||||||
# Parse command-line arguments
|
# Parse command-line arguments
|
||||||
|
|||||||
Reference in New Issue
Block a user