aandrew-me / tgpt

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

[suggestion] this backend can be jailbroken only in the first message #107

Closed evilsh3ll closed 11 months ago

evilsh3ll commented 11 months ago

Hello, I tried to jailbreak the prompt but it works only with the first message, the following one will be not jailbroken. Is there a solution (maybe a sort of cleaning the cache)? Will you consider to use another backend? Thanks

aandrew-me commented 11 months ago

It time to migrate code to a new backend. Give me a good backend and I may consider :)

HakaishinShwet commented 11 months ago

@aandrew-me can you please add custom system prompt option in this program like you have created pre system prompt for some options like for code generate you give- Your Role: Provide only code as output without any description.\nIMPORTANT..... so if possible can you add option with flag with which user can start multi line or interactive mode with that custom system prompt that we will give initially , i have used open ai api key with llm chain and was able to give custom system prompt there and shell start with that system prompt so if this can happen in this it would be much more useful. Thankyou so much for this awesome terminal project :-)

evilsh3ll commented 11 months ago

@aandrew-me why not using the g4f backends? https://github.com/xtekky/gpt4free

vimnux commented 11 months ago

@evilsh3ll @shwetkanwal24 For now, you can use this Bash script for prompts: https://github.com/vimnux/tgpt-prompt

It sends the selected prompt with every request.

I added some random prompts. You'll have to edit the script and add prompt(s) that are useful for you.

Long prompts make it slow. Ask AI to shorten/optimize your prompts.

I recommend calling the script with 'rlwrap' and making (.bashrc) aliases and/or hotkeys for convenience.

Example of the 'Emoji Translator' - prompt: tgpt-prompt

aandrew-me commented 11 months ago

@aandrew-me why not using the g4f backends? https://github.com/xtekky/gpt4free

That's where I got it from

HakaishinShwet commented 11 months ago

@vimnux thanks buddy for the script its working fine :-)