kenken999 commited on
Commit
734fe03
1 Parent(s): 40ad5ba
babyagi/babyagi.py CHANGED
@@ -817,7 +817,7 @@ def main():
817
  print(" • " + str(t))
818
  #yield str(t)
819
  result_all += str(t)+"\r\n"
820
- #send_google_chat_card(webhook_url,OBJECTIVE,OBJECTIVE+"\r\n"+result_all,"タスク定義","タスク定義",thread_name)
821
 
822
  # Step 1: Pull the first incomplete task
823
  task = tasks_storage.popleft()
@@ -826,7 +826,7 @@ def main():
826
  print(str(task["task_name"]))
827
  #yield str(task["task_name"])
828
  result_all += str(task["task_name"])+"\r\n"
829
- #send_google_chat_card(webhook_url,OBJECTIVE,OBJECTIVE+"\r\n"+result_all,"タスク定義","タスク定義",thread_name)
830
 
831
 
832
  # Send to execution function to complete the task based on the context
@@ -836,7 +836,7 @@ def main():
836
  print(result)
837
  #yield result
838
  result_all += result+"\r\n"
839
- #send_google_chat_card(webhook_url,OBJECTIVE,OBJECTIVE+"\r\n"+result_all,"タスク定義","タスク定義",thread_name)
840
 
841
  #yield result_all
842
 
 
817
  print(" • " + str(t))
818
  #yield str(t)
819
  result_all += str(t)+"\r\n"
820
+ send_google_chat_card(webhook_url,OBJECTIVE,OBJECTIVE+"\r\n"+result_all,"タスク定義","タスク定義",thread_name)
821
 
822
  # Step 1: Pull the first incomplete task
823
  task = tasks_storage.popleft()
 
826
  print(str(task["task_name"]))
827
  #yield str(task["task_name"])
828
  result_all += str(task["task_name"])+"\r\n"
829
+ send_google_chat_card(webhook_url,OBJECTIVE,OBJECTIVE+"\r\n"+result_all,"タスク定義","タスク定義",thread_name)
830
 
831
 
832
  # Send to execution function to complete the task based on the context
 
836
  print(result)
837
  #yield result
838
  result_all += result+"\r\n"
839
+ send_google_chat_card(webhook_url,OBJECTIVE,OBJECTIVE+"\r\n"+result_all,"タスク定義","タスク定義",thread_name)
840
 
841
  #yield result_all
842
 
chat_history.db CHANGED
Binary files a/chat_history.db and b/chat_history.db differ
 
controllers/gpt_enginner20240624160644 ADDED
@@ -0,0 +1 @@
 
 
1
+ Subproject commit 5e0569a3b7e105c89beefbdfb86e543f8c047f7b
mysite/routers/fastapi.py CHANGED
@@ -331,15 +331,15 @@ def setup_webhook_routes(app: FastAPI):
331
  text=True,
332
  shell=True
333
  )
334
- stdout, stderr = proc.communicate()
335
 
336
- if proc.returncode != 0:
337
- print(f"Command failed with return code {proc.returncode}")
338
- print(f"Error output: {stderr}")
339
- return None
340
 
341
- thread_name = send_google_chat_card_thread(webhook_url, title, stdout, link_text, link_url, thread_name)
342
- return thread_name
343
 
344
  except Exception as e:
345
  print(f"An error occurred: {e}")
 
331
  text=True,
332
  shell=True
333
  )
334
+ #stdout, stderr = proc.communicate()
335
 
336
+ #if proc.returncode != 0:
337
+ # print(f"Command failed with return code {proc.returncode}")
338
+ # print(f"Error output: {stderr}")
339
+ # return None
340
 
341
+ #thread_name = send_google_chat_card_thread(webhook_url, title, stdout, link_text, link_url, thread_name)
342
+ #return thread_name
343
 
344
  except Exception as e:
345
  print(f"An error occurred: {e}")