Skip to content

Commit 4251003

Browse files
committed
Minor code simplification
Signed-off-by: Paul Yuknewicz <[email protected]>
1 parent 7dbe45e commit 4251003

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

function_app.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -64,13 +64,13 @@ def main(req):
6464
# LangChain user code goes here
6565
llm = AzureChatOpenAI(
6666
deployment_name=AZURE_OPENAI_CHATGPT_DEPLOYMENT,
67-
temperature=0.3,
68-
openai_api_key=AZURE_OPENAI_KEY
67+
temperature=0.3
6968
)
7069
llm_prompt = PromptTemplate.from_template(
7170
"The following is a conversation with an AI assistant. " +
7271
"The assistant is helpful.\n\n" +
73-
"A:How can I help you today?\nHuman: {human_prompt}?"
72+
"A:How can I help you today?\n" +
73+
"Human: {human_prompt}?"
7474
)
7575
formatted_prompt = llm_prompt.format(human_prompt=prompt)
7676

0 commit comments

Comments
 (0)