kenken999 commited on
Commit
a5f1115
1 Parent(s): 4a363be
Files changed (1) hide show
  1. routers/webhook.py +4 -3
routers/webhook.py CHANGED
@@ -93,7 +93,7 @@ async def webhook(request: Request):
93
  #logger.info(f"User ID: {user_id}, Text: {text}")
94
  #########################################################################
95
  # 査定用のプロンプト
96
- promps,prompt_res = prompt_genalate("返信は日本語で答えて下さい "+text,get_prompt(text))
97
 
98
  #test_set_lide(text,"a1")
99
  #no_process_file(text, "ai")
@@ -169,13 +169,14 @@ async def webhook(request: Request):
169
  logger.info("Forwarding to URL: %s", os.getenv("WEBHOOK_URL"))
170
  logger.info("Forwarding Headers: %s", headers)
171
  logger.info("Forwarding Body: %s", body.decode("utf-8"))
172
-
173
  response = requests.post("https://api-mebo.dev/line/events/397cca5b-1a1c-4cee-b207-3b2b4fe642ab191ab9d06f32b7/3491d43d-f3e3-4c90-be9e-70fd61783a1b1919394918b1ac", headers=headers, data=body)
174
  #responses = requests.post(os.getenv("WEBHOOK_GAS"), headers=headers, data=body)
175
  logger.info("Response Code: %s", response.status_code)
176
  logger.info("Response Content: %s", response.text)
177
  logger.info("Response Headers: %s", response.headers)
178
-
 
179
  return {"status": "success", "response_content": response.text}#, response.status_code
180
 
181
  except Exception as e:
 
93
  #logger.info(f"User ID: {user_id}, Text: {text}")
94
  #########################################################################
95
  # 査定用のプロンプト
96
+ #promps,prompt_res = prompt_genalate("返信は日本語で答えて下さい "+text,get_prompt(text))
97
 
98
  #test_set_lide(text,"a1")
99
  #no_process_file(text, "ai")
 
169
  logger.info("Forwarding to URL: %s", os.getenv("WEBHOOK_URL"))
170
  logger.info("Forwarding Headers: %s", headers)
171
  logger.info("Forwarding Body: %s", body.decode("utf-8"))
172
+ print("-------------------------------------------------------------------")
173
  response = requests.post("https://api-mebo.dev/line/events/397cca5b-1a1c-4cee-b207-3b2b4fe642ab191ab9d06f32b7/3491d43d-f3e3-4c90-be9e-70fd61783a1b1919394918b1ac", headers=headers, data=body)
174
  #responses = requests.post(os.getenv("WEBHOOK_GAS"), headers=headers, data=body)
175
  logger.info("Response Code: %s", response.status_code)
176
  logger.info("Response Content: %s", response.text)
177
  logger.info("Response Headers: %s", response.headers)
178
+ print("-------------------------------------------------------------------")
179
+
180
  return {"status": "success", "response_content": response.text}#, response.status_code
181
 
182
  except Exception as e: