Skip to content

Commit f6b5e94

Browse files
Update chatreadretrieveread.py (Typo "Azure Open AI"→"Azure OpenAI") (#1443)
https://github.com/Azure-Samples/azure-search-openai-demo/blob/main/app/backend/approaches/chatreadretrieveread.py #PingMSFTDocs
1 parent 0a76219 commit f6b5e94

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

app/backend/approaches/chatreadretrieveread.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ async def run_until_final_call(
127127

128128
chat_completion: ChatCompletion = await self.openai_client.chat.completions.create(
129129
messages=query_messages, # type: ignore
130-
# Azure Open AI takes the deployment name as the model name
130+
# Azure OpenAI takes the deployment name as the model name
131131
model=self.chatgpt_deployment if self.chatgpt_deployment else self.chatgpt_model,
132132
temperature=0.0, # Minimize creativity for search query generation
133133
max_tokens=100, # Setting too low risks malformed JSON, setting too high may affect performance
@@ -215,7 +215,7 @@ async def run_until_final_call(
215215
}
216216

217217
chat_coroutine = self.openai_client.chat.completions.create(
218-
# Azure Open AI takes the deployment name as the model name
218+
# Azure OpenAI takes the deployment name as the model name
219219
model=self.chatgpt_deployment if self.chatgpt_deployment else self.chatgpt_model,
220220
messages=messages,
221221
temperature=overrides.get("temperature", 0.3),

0 commit comments

Comments
 (0)