diff --git a/README.md b/README.md index f0bdc6d3..c7a32852 100644 --- a/README.md +++ b/README.md @@ -182,5 +182,5 @@ The markdown rendering of the message used is another [project](https://github.c ## License -This project is licensed under GPLv3, which means you are free to copy, distribute, and modify the software, as long as all modifications and derivative works are also released under the same license +This project is licensed under GPLv3, which means you are free to copy, distribute, and modify the software, as long as all modifications and derivative works are also released under the same license. \ No newline at end of file diff --git a/chatgpt2api/chatgpt2api.py b/chatgpt2api/chatgpt2api.py index 1e1c25ff..b31c1ba4 100644 --- a/chatgpt2api/chatgpt2api.py +++ b/chatgpt2api/chatgpt2api.py @@ -268,7 +268,7 @@ def ask_stream( Ask a question """ # Make conversation if it doesn't exist - if convo_id not in self.conversation: + if convo_id not in self.conversation or pass_history == False: self.reset(convo_id=convo_id, system_prompt=self.system_prompt) self.add_to_conversation(prompt, "user", convo_id=convo_id) self.__truncate_conversation(convo_id=convo_id) @@ -371,7 +371,7 @@ async def ask_stream_async( Ask a question """ # Make conversation if it doesn't exist - if convo_id not in self.conversation: + if convo_id not in self.conversation or pass_history == False: self.reset(convo_id=convo_id, system_prompt=self.system_prompt) self.add_to_conversation(prompt, "user", convo_id=convo_id) self.__truncate_conversation(convo_id=convo_id) diff --git a/config.py b/config.py index c9b2cbe3..8c517ec3 100644 --- a/config.py +++ b/config.py @@ -24,7 +24,6 @@ from chatgpt2api.chatgpt2api import Imagebot if API: ChatGPTbot = GPT(api_key=f"{API}", engine=GPT_ENGINE, system_prompt=systemprompt, temperature=temperature) - Claude2bot = GPT(api_key=f"{API}", engine="claude-2-web") dallbot = Imagebot(api_key=f"{API}") else: ChatGPTbot = None diff --git a/requirements.txt b/requirements.txt index f927e737..ba0d92ea 100644 --- a/requirements.txt +++ b/requirements.txt @@ -16,4 +16,4 @@ unstructured[pdf] duckduckgo-search==3.8.5 langchain==0.0.271 oauth2client==3.0.0 -g4f==0.1.8.0 \ No newline at end of file +g4f==0.1.8.2 \ No newline at end of file