Code Monkey home page Code Monkey logo

Comments (7)

Wolfsblvt avatar Wolfsblvt commented on June 11, 2024

I think the better feature would be to have macros work in image gen prompts. That way you could simply add your jailbreak there via its macro, or even put a specific one into a variable.

from sillytavern.

Cohee1207 avatar Cohee1207 commented on June 11, 2024

Macros should be working in image prompts without any modifications since day 1 of the ImageGen extension.

from sillytavern.

Wolfsblvt avatar Wolfsblvt commented on June 11, 2024

Yup, you are correct.

So you can either use {{charJailbreak}} at the beginning of your image prompts,
or more specific, create your own jealbreak via

/setglobalvar key=imageGenJailbreak Write your Jailbreak here

and then just add it via {{getglobalvar::imageGenJailbreak}}.

from sillytavern.

xalyy avatar xalyy commented on June 11, 2024

Macros should be working in image prompts without any modifications since day 1 of the ImageGen extension.

Yup, you are correct.

So you can either use {{charJailbreak}} at the beginning of your image prompts, or more specific, create your own jealbreak via

/setglobalvar key=imageGenJailbreak Write your Jailbreak here

and then just add it via {{getglobalvar::imageGenJailbreak}}.

I can try that, thanks for the suggestion guys.
Another suggestion I can give is that if there would be an option to choose which language model or API do you want the templates to be handled by, like how it is with image captioning, you can choose multiple APIs.

from sillytavern.

Cohee1207 avatar Cohee1207 commented on June 11, 2024

Another suggestion I can give is that if there would be an option to choose which language model or API do you want the templates to be handled by, like how it is with image captioning, you can choose multiple APIs.

No, this is impossible due to how complex the handling of different models, their settings, and prompts is. You don't simply say "I want this model!", you need to configure specific instruct formatting, select parameters, configure the system prompt, etc. The list goes on. And with the growing list of supported APIs, this is going to be more and more improbable. STscripts already give control over your currently selected model and its settings - use that instead.

from sillytavern.

xalyy avatar xalyy commented on June 11, 2024

Yup, you are correct.

So you can either use {{charJailbreak}} at the beginning of your image prompts, or more specific, create your own jealbreak via

/setglobalvar key=imageGenJailbreak Write your Jailbreak here

and then just add it via {{getglobalvar::imageGenJailbreak}}.

Just for clarification how will the prefill get added to this? Because as far as I understand Claude still needs the prefill too.

from sillytavern.

Cohee1207 avatar Cohee1207 commented on June 11, 2024

Macros and extensions are not aware of prefills. You have to monitor the generated prompts to figure it out

from sillytavern.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.