kenken999 commited on
Commit
397f45e
·
1 Parent(s): 6517cb9
Files changed (1) hide show
  1. routers/webhook.py +3 -3
routers/webhook.py CHANGED
@@ -204,9 +204,9 @@ async def webhook(request: Request):
204
  text = text.replace("\r\n","")
205
  # コマンドを構築
206
  command = f"""make runbabyagi "{text}に対して、より良いチャットボットでのQAプランデータ設定の提案を日本語で作成してください" {thread_name}"""
207
-
208
- with open('/home/user/app/babyagi/prompt.txt', 'w') as file:
209
- file.write(f"""{text}の質問 についてチャットボットでよりよく対応するプランを日本語で作成して""")
210
 
211
  ######################################################################
212
  if DEBUG==1:
 
204
  text = text.replace("\r\n","")
205
  # コマンドを構築
206
  command = f"""make runbabyagi "{text}に対して、より良いチャットボットでのQAプランデータ設定の提案を日本語で作成してください" {thread_name}"""
207
+ if DEBUG==1:
208
+ with open('/home/user/app/babyagi/prompt.txt', 'w') as file:
209
+ file.write(f"""{text}の質問 についてチャットボットでよりよく対応するプランを日本語で作成して""")
210
 
211
  ######################################################################
212
  if DEBUG==1: