Comments (4)
I want this too! Would be great to switch between several system prompts by just typing something like cfswitch
to choose from results from Script Filter and add a custom one by adding an argument to it. After which you invoke a typical query with the system prompts.
Would also be great if you can name each prompt (Code explanation
, Translate engine
) and show the name as a part of the subtext during a typical queryβ¦
I may want to work on this someday :P
from chatfred.
Now that I look at the extension, wondering what the difference between the "jailbreak prompt" and and a system prompt might be.
from chatfred.
Hey @gleitz!
Very good question ;-).
To be precise, the jailbreak prompt is actually just another user prompt. check out the code:
def create_message(prompt: str) -> List[Dict[str, str]]:
"""Creates a message to be sent to the model.
Args:
prompt (str): The prompt to be included in the message.
Returns:
List[Dict[str, str]]: A list of dictionaries representing the message,
with each dictionary containing the role and content of the message.
"""
transformation_pre_prompt = """You are a helpful assistant who interprets every input as raw
text unless instructed otherwise. Your answers do not include a description unless prompted to do so.
Also drop any "`" characters from the your response."""
if __text_transformation_prompt:
return [
{"role": "system", "content": transformation_pre_prompt},
{
"role": "user",
"content": f"{__text_transformation_prompt} Don't add any comments: {prompt}",
},
]
messages = [{"role": "system", "content": "You are a helpful assistant"}]
for user_text, assistant_text in read_from_log():
if user_text == __jailbreak_prompt:
continue
messages.append({"role": "user", "content": user_text})
messages.append({"role": "assistant", "content": assistant_text})
if __jailbreak_prompt and __unlocked == 1:
messages.append({"role": "user", "content": __jailbreak_prompt})
messages.append({"role": "assistant", "content": "Okay! How can I help?"})
messages.append({"role": "user", "content": prompt})
return messages
Feel free to create a pull request in case you want to contribute!
from chatfred.
Nice idea. I will move this "issue" into the discussions. @Sponge-bink feel free to create a PR. Thanks in advance.
from chatfred.
Related Issues (20)
- Azure OpenAI API support? HOT 1
- Ollama support
- Notifications "You exceeded your current quota, please check your plan and billing details." instead of proper responds. HOT 3
- Gallery version is outdated HOT 1
- Do you have any plan to support DALL-E 3? HOT 3
- Constant error message: hmm something is wrong with your request, try again later... HOT 14
- Instruct GPT Models Deprecated HOT 7
- Autocomplete for aliases HOT 1
- Add support for images using GPT4-vision
- support custom model
- No response, just large π¬ emoji HOT 8
- how to chat to the previous gpt reply? HOT 2
- Token overuse HOT 3
- Order when using the Universal action & combined prompts
- Use Chatfred with LocalAI server? HOT 3
- Cannot Set the history_length to 0 Despite Being Provided HOT 7
- ChatGPT Aliases Should Search for Keyword Within the Prompt, Instead of the Other Way Around HOT 1
- Is anyone experiencing problems with inputs being cutoff? HOT 3
- Streaming the Reply to Save Time HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. πππ
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from chatfred.