You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In the meantime for folks that want to piece it together I use this:
ai () {
mods "$(gum write --char-limit=0 --placeholder='what do you want to ask the AI overlords?')"
}
aicc () {
mods --continue-last "$(gum write --char-limit=0 --placeholder='what do you want to ask the AI overlords?')"
}
aipickbackup() {
conversationID=$(mods --list | gum filter | awk '{print $1}')
mods --continue $conversationID"$(gum write --placeholder='more to add?')"
}
YMMV, but maybe useful for anyone wanting to see practical way to use it.
# enter an interactive chat conversation using modschat() {
# pick a model alias from your config
model=$(yq -r .apis[].models[].aliases[0] ~/.config/mods/mods.yml \| gum choose --height 8 --header "Pick model to chat with:" --no-show-help)if [[ -z$model ]];then
gum format " :pensive: cancelled, no model picked." -t emoji
return 1
fi# first invocation starts a new conversation
mods --model "$model" --prompt-args ||return$?# after that enter a loop until user quitswhile mods --model "$model" --prompt-args --continue-last;do:;donereturn$?;
}
The model choice uses the first items from all models' aliases fields, so I suggest you prune your config and remove any providers and models that you don't want to see in this list. Or, you know, just hardcode it.
No description provided.
The text was updated successfully, but these errors were encountered: