aandrew-me / tgpt

AI Chatbots in terminal without needing API keys
GNU General Public License v3.0
1.99k stars 166 forks source link

How to save configurations locally? #294

Closed Jiayou-Chao closed 1 month ago

Jiayou-Chao commented 1 month ago

It's very inconvenient and impractical to set the provider configurations every time. I hope there is some guidance on how to save the configurations locally.

aandrew-me commented 1 month ago

That's why shell aliases exist

cameronj86 commented 1 month ago

Here are some examples that I put in my .bash_aliases file: (I used DDG for the supposed additional privacy layer)

# AI Chat Bots
function q() {
        tgpt --provider duckduckgo --model mistralai/Mixtral-8x7B-Instruct-v0.1 "${*@Q}"
    }

function meta() {
        tgpt --provider duckduckgo --model meta-llama/Meta-Llama-3.1-70B-Instruct-Turbo  "${*@Q}"
    }

function openai() {
        tgpt --provider duckduckgo  "${*@Q}"
    }