We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7dbe45e commit 4251003Copy full SHA for 4251003
function_app.py
@@ -64,13 +64,13 @@ def main(req):
64
# LangChain user code goes here
65
llm = AzureChatOpenAI(
66
deployment_name=AZURE_OPENAI_CHATGPT_DEPLOYMENT,
67
- temperature=0.3,
68
- openai_api_key=AZURE_OPENAI_KEY
+ temperature=0.3
69
)
70
llm_prompt = PromptTemplate.from_template(
71
"The following is a conversation with an AI assistant. " +
72
"The assistant is helpful.\n\n" +
73
- "A:How can I help you today?\nHuman: {human_prompt}?"
+ "A:How can I help you today?\n" +
+ "Human: {human_prompt}?"
74
75
formatted_prompt = llm_prompt.format(human_prompt=prompt)
76
0 commit comments