SillyTavern / SillyTavern

LLM Frontend for Power Users.
https://sillytavern.app
GNU Affero General Public License v3.0
6.72k stars 2k forks source link

[FEATURE_REQUEST] Advanced settings on User's card as requested by Character card. #2401

Open whiskeyfur opened 1 week ago

whiskeyfur commented 1 week ago

Have you searched for similar requests?

Yes

Is your feature request related to a problem? If so, please describe.

No

Describe the solution you'd like

I would like to see a few things here, all related: 1: Character cards could have a format where there would be some parameters for the character card loaded. Example: {{param::gender::Male,Female,Other}} Would result in on the user's character card: image This would/could be set in the prompt as <name>'s Gender=("Male")

2: I would like to see the character card have some conditionals in it like the following: {{if::gender::Male}}<Scenario from Male's perspective>{{/if}} {{if::gender::Female}}<Scenario from Female's perspective>{{else}}<Scenario from non-female's perspective>{{/if}}

I know this is a big ask, but I'm hoping it sparks some ideas here on how it can be done.

Describe alternatives you've considered

Coding my own front end.

Additional context

No response

Priority

Low (Nice-to-have)

Are you willing to test this on staging/unstable branch if this is implemented?

Yes

whiskeyfur commented 1 week ago

Goofed on the image. Here's the corrected screenshot of the parameter (edited through directly modifying the html in page) image

Wolfsblvt commented 1 week ago

{{if}}-macros are in the works and will come. One day.

For the rest, that sounds a lot like personal preference and model specific. You can already set and read variables. If you want to have them presented in a streamlined way for multiple characters, you can use World Info to make the entries pulling from the variable.
If you want this to be UI controls, then its likely an extension.

whiskeyfur commented 1 week ago

It was more the idea that the character card can declare what parameters that specific card needs to have for the scenario it's presenting.

Like a scenario where you're a member of a soccer team, then you can with a pull down menu of all the positions available, select your position on the team.

The card then presents a different prompt to the model to alter the scenario based on your choice.

Wolfsblvt commented 4 days ago

This sounds to me like a cool extension idea, yeah. I can see the use-case, but it's not something that people would generally use/do on a character card.