From 0c82bed612aea8a2fe670628767963a60cf3713b Mon Sep 17 00:00:00 2001 From: Oh-JunTaek <143782929+Oh-JunTaek@users.noreply.github.com> Date: Wed, 25 Dec 2024 17:26:48 +0900 Subject: [PATCH] =?UTF-8?q?perf:=EC=A0=9C=EB=AA=A9=EC=83=9D=EC=84=B1?= =?UTF-8?q?=ED=94=84=EB=A1=AC=ED=94=84=ED=8A=B8=EA=B0=9C=EC=84=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/prompts/resume_prompt.py | 8 +++++--- app/services/gpt_service.py | 3 +-- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/app/prompts/resume_prompt.py b/app/prompts/resume_prompt.py index e208040..3a2af9c 100644 --- a/app/prompts/resume_prompt.py +++ b/app/prompts/resume_prompt.py @@ -73,9 +73,11 @@ # 프로젝트 이름 생성 PROJECT_TITLE_PROMPT = ( - "Return the best project title as plain text. " - "Do not include any additional explanation, formatting, or context. " - "Only provide the title itself." + "- Be concise yet descriptive.\n" + "- Reflect the essence and purpose of the project.\n" + "- Avoid overly generic terms like 'Game' unless it is the only appropriate option.\n\n" + "Your response should return a title that feels natural and well-aligned with the project context. " + "Provide only the title as plain text, without additional explanation or formatting." ) # 맡은 업무 생성 diff --git a/app/services/gpt_service.py b/app/services/gpt_service.py index 0b61a66..79d4789 100644 --- a/app/services/gpt_service.py +++ b/app/services/gpt_service.py @@ -356,10 +356,9 @@ def generate_project_title(openai_api_key, gh_token, repo_url, prompt=settings.p "role": "system", "content": ( "You are a professional assistant tasked with deciding the best project title. " - "1. Be a single, clear, and concise word." + "1. Be a single, clear" "2. Reflect the essence or purpose of the project." "3. Avoid multi-word phrases, additional context, or unnecessary details. " - "Return only the single-word title as plain text." ) }, {