Skip to content

Commit 589a343

Browse files
Update text_2_webpage_chatbot.py
1 parent 2fe5d86 commit 589a343

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

langchain_examples/text_2_webpage_chatbot.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
from langchain.chat_models import ChatOpenAI
77
from langchain.llms import OpenAI
88
from langchain.chains import ConversationChain, LLMChain
9-
from langchain.memory import ConversationBufferWindowMemory
109
from langchain.prompts.chat import (
1110
ChatPromptTemplate,
1211
SystemMessagePromptTemplate,
@@ -29,7 +28,7 @@ def generate_code(human_input):
2928
system_message_prompt = SystemMessagePromptTemplate.from_template(system_prompt_template)
3029
human_message_prompt = HumanMessagePromptTemplate.from_template(human_prompt_template)
3130
# delete the gpt-4 model_name to use the default gpt-3.5 turbo for faster results
32-
gpt_4 = ChatOpenAI(temperature=0, model_name='gpt-4')
31+
gpt_4 = ChatOpenAI(temperature=0, model_name='gpt-4') #chat model, no memory
3332
conversation = [system_message_prompt, human_message_prompt]
3433
chat_prompt = ChatPromptTemplate.from_messages(conversation)
3534
response = gpt_4(chat_prompt.format_prompt(

0 commit comments

Comments
 (0)