kenken999 commited on
Commit
ca83118
1 Parent(s): f5ca442
chat_history.db CHANGED
Binary files a/chat_history.db and b/chat_history.db differ
 
controllers/gpt_enginner20240624192929 ADDED
@@ -0,0 +1 @@
 
 
1
+ Subproject commit f007c3fd01f78cbc9828c56c26d5c830a220895e
controllers/gpt_enginner20240624193745 ADDED
@@ -0,0 +1 @@
 
 
1
+ Subproject commit 871896ea83f2153062c389fef46fffbfdc74014a
mysite/interpreter/process.py CHANGED
@@ -257,7 +257,8 @@ def no_process_file(prompt, foldername,thread_name=None):
257
  link_text = "ステップ1 githubで プログラムを確認する githubだと相談者が沢山いるのでわからなければ聞いてみる "
258
  link_url = url
259
 
260
- send_google_chat_card,send_google_chat_card_thread(webhook_url, title, subtitle, link_text, link_url,thread_name)
 
261
  #insert data to db
262
  #test_set_lide(prompt,url)
263
  print(f"Processed Content:success ")
 
257
  link_text = "ステップ1 githubで プログラムを確認する githubだと相談者が沢山いるのでわからなければ聞いてみる "
258
  link_url = url
259
 
260
+ #send_google_chat_card,send_google_chat_card_thread(webhook_url, title, subtitle, link_text, link_url,thread_name)
261
+
262
  #insert data to db
263
  #test_set_lide(prompt,url)
264
  print(f"Processed Content:success ")
mysite/routers/fastapi.py CHANGED
@@ -246,7 +246,7 @@ def setup_webhook_routes(app: FastAPI):
246
  link_text = "データを確認する"
247
  link_url = "https://kenken999-php.hf.space/diamondprice_list.php"
248
  #test_set_lide(subtitle, text)
249
- if DEBUG==1:
250
  thread_name = send_google_chat_card_thread(webhook_url, title, subtitle, link_text, link_url,thread_name)
251
 
252
  #thread_name = send_google_chat_card_thread(webhook_url, title, subtitle, link_text, link_url,thread_name)
@@ -256,7 +256,7 @@ def setup_webhook_routes(app: FastAPI):
256
  first_line = text.split('\n')[0]
257
  #test_prompt
258
  res = test_prompt("返信は必ず日本語でして下さい \r\n"+prompt_res,text)
259
- if DEBUG==1:
260
  thread_name = send_google_chat_card_thread(webhook_url, "プロンプトテスト "+first_line, str(res), link_text, link_url,thread_name)
261
  #thread_name = send_google_chat_card_thread(webhook_url, title, subtitle, link_text, link_url,thread_name)
262
  now = datetime.now()
 
246
  link_text = "データを確認する"
247
  link_url = "https://kenken999-php.hf.space/diamondprice_list.php"
248
  #test_set_lide(subtitle, text)
249
+ if DEBUG==0:
250
  thread_name = send_google_chat_card_thread(webhook_url, title, subtitle, link_text, link_url,thread_name)
251
 
252
  #thread_name = send_google_chat_card_thread(webhook_url, title, subtitle, link_text, link_url,thread_name)
 
256
  first_line = text.split('\n')[0]
257
  #test_prompt
258
  res = test_prompt("返信は必ず日本語でして下さい \r\n"+prompt_res,text)
259
+ if DEBUG==0:
260
  thread_name = send_google_chat_card_thread(webhook_url, "プロンプトテスト "+first_line, str(res), link_text, link_url,thread_name)
261
  #thread_name = send_google_chat_card_thread(webhook_url, title, subtitle, link_text, link_url,thread_name)
262
  now = datetime.now()