diff --git a/manifest.json b/manifest.json index 3e9120d..560deee 100644 --- a/manifest.json +++ b/manifest.json @@ -1,7 +1,7 @@ { "id": "auto-classifier", "name": "Auto Classifier", - "version": "1.2.0", + "version": "1.2.1", "minAppVersion": "1.1.1", "description": "This plugin automatically classify tag from your notes using ChatGPT API. It analyze your note (It can be title, frontmatter, content or selected area) and automatically insert tag where you set.", "author": "Hyeonseo Nam", diff --git a/src/template.ts b/src/template.ts index 80324ad..e304b58 100644 --- a/src/template.ts +++ b/src/template.ts @@ -4,7 +4,8 @@ export const DEFAULT_PROMPT_TEMPLATE = `Classify this content: {{input}} """ Answer format is JSON {reliability:0~1, outputs:[tag1,tag2,...]}. -Even if you are not sure, qualify the reliability and select the best matches. +Even if you are unsure, qualify the reliability and select the best matches. +Respond only with valid JSON. Do not write an introduction or summary. Output tags must be from these options: {{reference}} @@ -16,5 +17,5 @@ export const DEFAULT_PROMPT_TEMPLATE_WO_REF = `Classify this content: """ Answer format is JSON {reliability:0~1, output:selected_category}. Even if you are not sure, qualify the reliability and recommend a proper category. - +Respond only with valid JSON. Do not write an introduction or summary. `;