Hi folks,
I made a solution (https://openexchange.intersystems.com/package/iris-pretty-gpt-1) and want to use it like
CREATEFUNCTION ChatGpt(INpromptVARCHAR)
RETURNSVARCHARPROCEDURELANGUAGE OBJECTSCRIPT
{
return ##class(dc.irisprettygpt.main).prompt(prompt)
}
CREATETABLE people (
nameVARCHAR(255),
city VARCHAR(255),
age INT(11)
)
INSERTINTO people ChatGpt("Make a json file with 100 lines of structure [{'name':'%name%', 'age':'%age%', 'city':'%city%'}]")