Transform values in your prompts using filter functions
capitalize(str)
: Capitalizes first character of stringlower(str)
: Converts string to lowercaseupper(str)
: Converts string to uppercasetruncate(str, length)
: Truncates string to specified lengthreplace(str, search, replace)
: Replaces text in stringjoin(array, separator)
: Joins array elements with separatorabs(num)
: Returns absolute valueround(num, decimals)
: Rounds number to decimal placesdump(obj)
: Converts object to JSON stringurlencode(str)
: URL encodes a stringWe’re here to help! Choose the best way to reach us: