dfa
Browse files
mysite/routers/fastapi.py
CHANGED
@@ -245,7 +245,7 @@ def setup_webhook_routes(app: FastAPI):
|
|
245 |
link_text = "γγΌγΏγη’Ίθͺγγ"
|
246 |
link_url = "https://kenken999-php.hf.space/diamondprice_list.php"
|
247 |
#test_set_lide(subtitle, text)
|
248 |
-
if
|
249 |
thread_name = send_google_chat_card_thread(webhook_url, title, subtitle, link_text, link_url,thread_name)
|
250 |
|
251 |
#thread_name = send_google_chat_card_thread(webhook_url, title, subtitle, link_text, link_url,thread_name)
|
@@ -255,7 +255,7 @@ def setup_webhook_routes(app: FastAPI):
|
|
255 |
first_line = text.split('\n')[0]
|
256 |
#test_prompt
|
257 |
res = test_prompt("θΏδΏ‘γ―εΏ
γζ₯ζ¬θͺγ§γγ¦δΈγγ \r\n"+prompt_res,text)
|
258 |
-
if
|
259 |
thread_name = send_google_chat_card_thread(webhook_url, "γγγ³γγγγΉγ "+first_line, str(res), link_text, link_url,thread_name)
|
260 |
#thread_name = send_google_chat_card_thread(webhook_url, title, subtitle, link_text, link_url,thread_name)
|
261 |
now = datetime.now()
|
|
|
245 |
link_text = "γγΌγΏγη’Ίθͺγγ"
|
246 |
link_url = "https://kenken999-php.hf.space/diamondprice_list.php"
|
247 |
#test_set_lide(subtitle, text)
|
248 |
+
if DEBUG==1:
|
249 |
thread_name = send_google_chat_card_thread(webhook_url, title, subtitle, link_text, link_url,thread_name)
|
250 |
|
251 |
#thread_name = send_google_chat_card_thread(webhook_url, title, subtitle, link_text, link_url,thread_name)
|
|
|
255 |
first_line = text.split('\n')[0]
|
256 |
#test_prompt
|
257 |
res = test_prompt("θΏδΏ‘γ―εΏ
γζ₯ζ¬θͺγ§γγ¦δΈγγ \r\n"+prompt_res,text)
|
258 |
+
if DEBUG==1:
|
259 |
thread_name = send_google_chat_card_thread(webhook_url, "γγγ³γγγγΉγ "+first_line, str(res), link_text, link_url,thread_name)
|
260 |
#thread_name = send_google_chat_card_thread(webhook_url, title, subtitle, link_text, link_url,thread_name)
|
261 |
now = datetime.now()
|