From ad4eae7ef082b853307895e4560f52304dc74f9e Mon Sep 17 00:00:00 2001 From: BioErrorLog <51422347+bioerrorlog@users.noreply.github.com> Date: Sat, 29 Apr 2023 09:29:05 +0900 Subject: [PATCH] Fix linting on the Quickstart Guide sample codes (#3701) When copying and pasting the sample code from the Quickstart Guide, lint errors ("missing whitespace around operator") occur." --- docs/getting_started/getting_started.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/docs/getting_started/getting_started.md b/docs/getting_started/getting_started.md index 02c03b61..3d83811f 100644 --- a/docs/getting_started/getting_started.md +++ b/docs/getting_started/getting_started.md @@ -361,9 +361,9 @@ from langchain.prompts.chat import ( chat = ChatOpenAI(temperature=0) -template="You are a helpful assistant that translates {input_language} to {output_language}." +template = "You are a helpful assistant that translates {input_language} to {output_language}." system_message_prompt = SystemMessagePromptTemplate.from_template(template) -human_template="{text}" +human_template = "{text}" human_message_prompt = HumanMessagePromptTemplate.from_template(human_template) chat_prompt = ChatPromptTemplate.from_messages([system_message_prompt, human_message_prompt]) @@ -387,9 +387,9 @@ from langchain.prompts.chat import ( chat = ChatOpenAI(temperature=0) -template="You are a helpful assistant that translates {input_language} to {output_language}." +template = "You are a helpful assistant that translates {input_language} to {output_language}." system_message_prompt = SystemMessagePromptTemplate.from_template(template) -human_template="{text}" +human_template = "{text}" human_message_prompt = HumanMessagePromptTemplate.from_template(human_template) chat_prompt = ChatPromptTemplate.from_messages([system_message_prompt, human_message_prompt])