Error transforming an integer to text

Answered

Hi,

I have a data table called 'App settings and variables' which contains the 'Max_tokens_per_completion' field, which is an integer.



In my functions, as first step I am calling the 'App settings and variables' table so that I can use some of its variables in the subsequent functions:

First question, is this a good practice or there is a better way to acess data in tables to use them as variables in functions?

Continuing, in a subsequent function, I am using the 'replace' filter to insert the Max_tokens_per_completion integer variable in a text.

However, I am getting this error (see below).
I tried using the to_text filter to convert the integer to text but I keep getting this error with or without converting it to text.


Any help to fix this error would be appreciated.

Thanks!

1 reply