kenken999 commited on
Commit
c62714c
1 Parent(s): 4f7e697
controllers/gpt_enginner20240619110704 ADDED
@@ -0,0 +1 @@
 
 
1
+ Subproject commit 466b4a892afe06eae7d41efe9d39f9930951bdb9
controllers/gra_02_openInterpreter/OpenInterpreter.py CHANGED
@@ -100,7 +100,7 @@ def format_responses(chunk, full_response):
100
  # This function will format the response from the interpreter
101
  return full_response + chunk.get("content", "")
102
 
103
- def chat_with_interpreter(message, history, a=None, b=None, c=None, d=None):
104
  if message == "reset":
105
  interpreter.reset()
106
  return "Interpreter reset", history
 
100
  # This function will format the response from the interpreter
101
  return full_response + chunk.get("content", "")
102
 
103
+ def chat_with_interpreter(message, history=None, a=None, b=None, c=None, d=None):
104
  if message == "reset":
105
  interpreter.reset()
106
  return "Interpreter reset", history
mysite/routers/fastapi.py CHANGED
@@ -206,7 +206,7 @@ def setup_webhook_routes(app: FastAPI):
206
  res_no_process = no_process_file(prompt_for_create_system+res, "gpt_enginner"+ yyyymmddhis)
207
 
208
  full_response,history = chat_with_interpreter(res)
209
- #send_google_chat_card(webhook_url, f"自動設定開始 {res}", str(full_response), link_text, link_url)
210
 
211
 
212
  #
 
206
  res_no_process = no_process_file(prompt_for_create_system+res, "gpt_enginner"+ yyyymmddhis)
207
 
208
  full_response,history = chat_with_interpreter(res)
209
+ send_google_chat_card(webhook_url, f"自動設定開始 {res}", str(full_response), link_text, link_url)
210
 
211
 
212
  #