Forum Academy Marketplace Showcase Pricing Features

Use slider to change value on curl code on prompt

I have slider with 0-2 max value so its 3 stages for Short, Medium and Long


So I want it to when I change the slider the value on my curl code (max_tokens) on prompt will change as well.

For example on the first stage of slider max token value is 80, on 2nd stage max token value is 200, and 3rd stage max token is 300.


I hope you guys get the point

Thanks in advance!

save the value in a custom state and then the same like at “promp”: “”, as the <> is the way to go for a dynamic value.

can you tell me how to save custom state on the slider please?
Will you be able to give an example?

Thank you I have figure it out!

1 Like

This topic was automatically closed after 70 days. New replies are no longer allowed.