Store Open AI comments in the variable

I'm trying to get the contents of the electronic medical record summarized by Chat GPT's API.

The code above works but the code below gives me an error, I want to store Open AI comments in the variable 'tex', is the code wrong?

{openai-text: As an internist, please provide lifestyle guidance for hypertension, lipid metabolism abnormalities, and diabetes based on medical record entries. Constraints: Keep your output brief, no more than 20 words in Japanese.: {site: text; page=https://karte.medley.life/*; select=ifneeded; selector=textarea}}

{tex={openai-text: As an internist, please provide lifestyle guidance for hypertension, lipid metabolism abnormalities, and diabetes based on medical record entries. Constraints: Keep your output brief, no more than 20 words in Japanese.: {site: text; page=https://karte.medley.life/*; select=ifneeded; selector=textarea}}}
{=tex}

When you click on the command chip, there will be few options in the right sidebar. One of them is the name property. You can put your variable name there, as shown in this image:

image

Then it will work as expected. Btw, have you checked our AI Snippets feature?

It is hopefully much easier to use and it also comes bundled with your existing Text Blaze subscription. Let me know if it works for you.

@Gaurang_Tandon
It has been a while. I've been using Text Blaze for a long time, but I've started making new snippets as needed. I'm sure I'll be asking a lot of questions again.

I fixed the points you pointed out and it worked. Thanks.

I've been asking questions on Chat GPT and Claude 3 for code lately, but Text Blaze is a minor language, so the replies are not so good.

I wish Text Blaze well in its development, it is a useful tool.

1 Like