From fa3052235903b535ccbc28223eb53c1f4ee534b8 Mon Sep 17 00:00:00 2001 From: MohamedBassem Date: Tue, 19 Mar 2024 21:21:02 +0000 Subject: fix(workers): Drop the restriction of the tags being lowercase and without spaces --- apps/workers/openaiWorker.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'apps/workers/openaiWorker.ts') diff --git a/apps/workers/openaiWorker.ts b/apps/workers/openaiWorker.ts index f1ec0b10..9e6cd553 100644 --- a/apps/workers/openaiWorker.ts +++ b/apps/workers/openaiWorker.ts @@ -80,8 +80,8 @@ const TEXT_PROMPT_BASE = ` I'm building a read-it-later app and I need your help with automatic tagging. Please analyze the text after the sentence "CONTENT START HERE:" and suggest relevant tags that describe its key themes, topics, and main ideas. Aim for a variety of tags, including broad categories, specific keywords, and potential sub-genres. If it's a famous website -you may also include a tag for the website. Tags should be lowercases and don't contain spaces. If the tag is not generic enough, don't -include it. Aim for 3-5 tags. If there are no good tags, don't emit any. The content can include text for cookie consent and privacy policy, ignore those while tagging. +you may also include a tag for the website. If the tag is not generic enough, don't include it. Aim for 3-5 tags. If there are no good tags, don't emit any. +The content can include text for cookie consent and privacy policy, ignore those while tagging. You must respond in JSON with the key "tags" and the value is list of tags. CONTENT START HERE: `; -- cgit v1.2.3-70-g09d2