kenken999 commited on
Commit
558afa5
1 Parent(s): 4a1bc1d
babyagi/babyagi.py CHANGED
@@ -162,10 +162,13 @@ JOIN_EXISTING_OBJECTIVE = False
162
  #OBJECTIVE = os.getenv("OBJECTIVE", "")
163
  OBJECTIVE = "ボットの性能をよくする方法 日本語で説明"
164
  OBJECTIVE = f"""チャットボットでの広告展開"""
 
165
  args = sys.argv
166
  if len(args) > 1:
167
  print(args[1])
168
  OBJECTIVE = args[1]
 
 
169
  else:
170
  print("not args")
171
 
 
162
  #OBJECTIVE = os.getenv("OBJECTIVE", "")
163
  OBJECTIVE = "ボットの性能をよくする方法 日本語で説明"
164
  OBJECTIVE = f"""チャットボットでの広告展開"""
165
+ thread_name = ""
166
  args = sys.argv
167
  if len(args) > 1:
168
  print(args[1])
169
  OBJECTIVE = args[1]
170
+ thread_name = args[2]
171
+
172
  else:
173
  print("not args")
174
 
chat_history.db CHANGED
Binary files a/chat_history.db and b/chat_history.db differ
 
controllers/gpt_enginner20240624152227 ADDED
@@ -0,0 +1 @@
 
 
1
+ Subproject commit 0bd629d5e2f2f9e1b34ea3ef331c73b4a42c1d74
controllers/gpt_enginner20240624153641 ADDED
@@ -0,0 +1 @@
 
 
1
+ Subproject commit f11aad1d60ec299a5ce2732916f538595ca4c822
controllers/gpt_enginner20240624154618 ADDED
@@ -0,0 +1 @@
 
 
1
+ Subproject commit 2920f5f233de336762acf27cd4646552af817c41
mysite/routers/fastapi.py CHANGED
@@ -318,9 +318,9 @@ def setup_webhook_routes(app: FastAPI):
318
  #########################################################################
319
  from babyagi.babyagi import completion
320
  #import tempfile
321
- #text = text.replace("\r\n","")
322
  command = f"""make runbabyagi "{text}に対して、より良いチャットボットでのQAプランデータ設定の提案を日本語で作成してください"""
323
- """
324
  proc = subprocess.Popen(
325
  command,
326
  stdin=subprocess.PIPE,
@@ -329,16 +329,16 @@ def setup_webhook_routes(app: FastAPI):
329
  text=True,
330
  shel=True
331
  )
332
- """
333
- #thread_name = send_google_chat_card_thread(webhook_url, title, proc, link_text, link_url,thread_name)
334
-
335
- prompt_res_agi = completion("日本語で下記のプランを考えて "+res)
336
- thread_name = send_google_chat_card_thread(webhook_url, title, prompt_res_agi, link_text, link_url,thread_name)
337
- title = f""" タスク作成 再度考える {promps}"""
338
- subtitle = prompt_res_agi
339
- link_text = "データを確認する"
340
- link_url = "https://kenken999-php.hf.space/diamondprice_list.php"
341
- thread_name = send_google_chat_card_thread(webhook_url, title, prompt_res_agi, link_text, link_url,thread_name)
342
 
343
  #send_google_chat_card(webhook_url, title, subtitle, link_text, link_url)
344
 
 
318
  #########################################################################
319
  from babyagi.babyagi import completion
320
  #import tempfile
321
+ text = text.replace("\r\n","")
322
  command = f"""make runbabyagi "{text}に対して、より良いチャットボットでのQAプランデータ設定の提案を日本語で作成してください"""
323
+
324
  proc = subprocess.Popen(
325
  command,
326
  stdin=subprocess.PIPE,
 
329
  text=True,
330
  shel=True
331
  )
332
+
333
+ thread_name = send_google_chat_card_thread(webhook_url, title, proc, link_text, link_url,thread_name)
334
+
335
+ #prompt_res_agi = completion("日本語で下記のプランを考えて "+res)
336
+ #thread_name = send_google_chat_card_thread(webhook_url, title, prompt_res_agi, link_text, link_url,thread_name)
337
+ #title = f""" タスク作成 再度考える {promps}"""
338
+ #subtitle = prompt_res_agi
339
+ #link_text = "データを確認する"
340
+ #link_url = "https://kenken999-php.hf.space/diamondprice_list.php"
341
+ #thread_name = send_google_chat_card_thread(webhook_url, title, prompt_res_agi, link_text, link_url,thread_name)
342
 
343
  #send_google_chat_card(webhook_url, title, subtitle, link_text, link_url)
344
 
workspace/code/test.py ADDED
@@ -0,0 +1 @@
 
 
1
+ print("Hello, World!")