-
Notifications
You must be signed in to change notification settings - Fork 147
keep TUI open and continue conversation #197
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
That would be cool! 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. |
I wrote myself another one: # enter an interactive chat conversation using mods
chat() {
# 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 quits
while mods --model "$model" --prompt-args --continue-last; do :; done
return $?;
} The model choice uses the first items from all models' |
Any progress on this feature? |
oh i see so i think my issue #475 is an alternative approach for now |
No description provided.
The text was updated successfully, but these errors were encountered: