kenken999 commited on
Commit
a243910
1 Parent(s): 3eb0d78

change prompt_genalate

Browse files
controllers/gpt_enginner20240619040450 ADDED
@@ -0,0 +1 @@
 
 
1
+ Subproject commit 785ea4ab428a0f4c732dd5c8c620ec23e2f81b63
controllers/gpt_enginner20240619040646 ADDED
@@ -0,0 +1 @@
 
 
1
+ Subproject commit c96f6bb3dccae8441d2a7117590fbe3981b5d482
controllers/gpt_enginner20240619040709 ADDED
@@ -0,0 +1 @@
 
 
1
+ Subproject commit 30396c48fc38be104b8b07210057b215fad6e5ca
mysite/routers/fastapi.py CHANGED
@@ -235,15 +235,15 @@ def setup_webhook_routes(app: FastAPI):
235
  return {"status": "success", "response_content": response.text}, response.status_code
236
 
237
  except Exception as e:
238
- promps = prompt_genalate(str(e))
239
  #test_set_lide(text,"a1")
240
  #no_process_file(text, "ai")
241
  title = """本番テスト 入力内容のみ設定 プロンプトも付け足してはテスト """
242
- subtitle = promps
243
  link_text = "test"
244
  link_url = "url"
245
  #test_set_lide(subtitle, text)
246
- logger.error(promps)
247
  send_google_chat_card(webhook_url, title, subtitle, link_text, link_url)
248
  logger.error("Error: %s", str(e))
249
  raise HTTPException(status_code=500, detail=str(e))
 
235
  return {"status": "success", "response_content": response.text}, response.status_code
236
 
237
  except Exception as e:
238
+ promps,res = prompt_genalate(str(e))
239
  #test_set_lide(text,"a1")
240
  #no_process_file(text, "ai")
241
  title = """本番テスト 入力内容のみ設定 プロンプトも付け足してはテスト """
242
+ subtitle = res
243
  link_text = "test"
244
  link_url = "url"
245
  #test_set_lide(subtitle, text)
246
+ logger.error(res)
247
  send_google_chat_card(webhook_url, title, subtitle, link_text, link_url)
248
  logger.error("Error: %s", str(e))
249
  raise HTTPException(status_code=500, detail=str(e))