Skip to content

Commit 69621e8

Browse files
update readme to use correct production_name (Azure#28607)
1 parent ef38e3a commit 69621e8

File tree

1 file changed

+3
-3
lines changed
  • sdk/cognitivelanguage/azure-ai-language-questionanswering

1 file changed

+3
-3
lines changed

sdk/cognitivelanguage/azure-ai-language-questionanswering/README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ client = QuestionAnsweringClient(endpoint, AzureKeyCredential(key))
137137
output = client.get_answers(
138138
question="How long should my Surface battery last?",
139139
project_name="FAQ",
140-
deployment_name="test"
140+
deployment_name="production"
141141
)
142142
for candidate in output.answers:
143143
print("({}) {}".format(candidate.confidence, candidate.answer))
@@ -168,7 +168,7 @@ output = client.get_answers(
168168
previous_qna_id=previous_answer.qna_id
169169
),
170170
project_name="FAQ",
171-
deployment_name="live"
171+
deployment_name="production"
172172
)
173173
for candidate in output.answers:
174174
print("({}) {}".format(candidate.confidence, candidate.answer))
@@ -326,7 +326,7 @@ try:
326326
client.get_answers(
327327
question="Why?",
328328
project_name="invalid-knowledge-base",
329-
deployment_name="test"
329+
deployment_name="production"
330330
)
331331
except HttpResponseError as error:
332332
print("Query failed: {}".format(error.message))

0 commit comments

Comments
 (0)