diff --git a/chatgpt.py b/chatgpt.py index 963f759..5e8d7dd 100644 --- a/chatgpt.py +++ b/chatgpt.py @@ -1,4 +1,7 @@ # chatgpt.py +import sys + +sys.path.insert(0, '/Users/carlos/Downloads/chatgpt-wrapper') from epc.server import EPCServer from chatgpt_wrapper import ChatGPT @@ -37,10 +40,8 @@ def querystream(query): def switch_to_chat(chat_uuid): global bot get_cahtgpt_bot() - bot.switch_to_conversation(chat_uuid) + # bot.switch_to_conversation(chat_uuid) return "" -# print("EPC chatgpt Server start") - server.print_port() server.serve_forever() diff --git a/chatgpt_dev.py b/chatgpt_dev.py index e82854d..da2f355 100644 --- a/chatgpt_dev.py +++ b/chatgpt_dev.py @@ -35,17 +35,19 @@ # conversation_info = bot.get_conversation_info("e6db6053-ae64-410f-b979-02fc24b8ad55") -bot.switch_to_conversation("e6db6053-ae64-410f-b979-02fc24b8ad55") +print("try to swtich conversation") + +# bot.switch_to_conversation("e6db6053-ae64-410f-b979-02fc24b8ad55") # print("response is: {0}".format(response)) # response = bot.ask("not it is 4 ") # print("response is: {0}".format(response)) -current_time = datetime.datetime.now();formatted_time = current_time.strftime("%Y-%m-%d %H:%M:%S") - -response = bot.ask("sorry it is 3 and now is:{0}".format(formatted_time)) +current_time = datetime.datetime.now(); formatted_time = current_time.strftime("%Y-%m-%d %H:%M:%S") +print("after switch conversation, try to ask") +# response = bot.ask("what is my name and now is:{0}".format(formatted_time)) +# print("response is: {0}".format(response)) -print("response is: {0}".format(response)) # input_result = input("Press Enter to continue...") import code; code.interact(local=locals())