Welcome to Portkey Forum

Updated last year

Sending variables in prompts templates

Does sending all the variables is necessary when using Prompts Template in Models? for example, lets say the API created from the prompt has 3 variables and we send 2 variables only, will it break the API?
V
d
4 comments
@Daniel Yuabov was just discussing a similar issue! Firstly, this will not break the API. If you don't call a variable, we use the raw "{{variable_name}}" text. Currently, if you are not using the variable in the template, you can pass empty string {{variable_name}}= "" while making the call.

Is something like default value for variables useful for you?
Yes default value will be very useful
Something like this? Set global variables that you can use across prompt templates and also set their default values?
Add a reply
Sign up and join the conversation on Discord