From 19affb9c63dc383d9e6618f4b89f0377d0e09194 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Joon=20Hwan=20=EA=B9=80=EC=A4=80=ED=99=98?= Date: Wed, 15 Nov 2023 13:20:02 +0900 Subject: [PATCH] update: prompt --- bots/bot.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/bots/bot.py b/bots/bot.py index 4ce865f..c90fef0 100644 --- a/bots/bot.py +++ b/bots/bot.py @@ -99,12 +99,12 @@ async def on_message_activity(self, turn_context: TurnContext): await turn_context.send_activity(ai_generated) elif ai_parsed_category and ai_parsed_category["category"] == 98: # 그 외 질문/요청 - ai_generated = await openai_helper.gen_answer(turn_context.activity.text) - await turn_context.send_activity( + ai_generated = await openai_helper.gen_answer( f""" 사용자 입력에 대해 최대한 짧게 답변 - 사용자 입력: {ai_generated}""" + 사용자 입력: {turn_context.activity.text}""" ) + await turn_context.send_activity(ai_generated) elif ai_parsed_category and ai_parsed_category["category"] == 99: # 로그아웃 self.conversation_state.create_property("DialogState")