Skip to content

Commit a9e0a40

Browse files
authored
Merge pull request #124006 from joshuaphelpsms/joshuaphelpsms-quickstart-groundedness-patch-1
Fix python script quickstart-groundedness.md
2 parents f213777 + f43fdb4 commit a9e0a40

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

articles/ai-services/content-safety/quickstart-groundedness.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -69,8 +69,9 @@ Create a new Python file named _quickstart.py_. Open the new file in your prefer
6969
```Python
7070
import http.client
7171
import json
72-
73-
conn = http.client.HTTPSConnection("<endpoint>/contentsafety/text:detectGroundedness?api-version=2024-02-15-preview")
72+
73+
endpoint = "<your_custom_subdomain>.cognitiveservices.azure.com"
74+
conn = http.client.HTTPSConnection(endpoint)
7475
payload = json.dumps({
7576
"domain": "Generic",
7677
"task": "QnA",
@@ -81,7 +82,7 @@ Create a new Python file named _quickstart.py_. Open the new file in your prefer
8182
"groundingSources": [
8283
"I'm 21 years old and I need to make a decision about the next two years of my life. Within a week. I currently work for a bank that requires strict sales goals to meet. IF they aren't met three times (three months) you're canned. They pay me 10/hour and it's not unheard of to get a raise in 6ish months. The issue is, **I'm not a salesperson**. That's not my personality. I'm amazing at customer service, I have the most positive customer service \"reports\" done about me in the short time I've worked here. A coworker asked \"do you ask for people to fill these out? you have a ton\". That being said, I have a job opportunity at Chase Bank as a part time teller. What makes this decision so hard is that at my current job, I get 40 hours and Chase could only offer me 20 hours/week. Drive time to my current job is also 21 miles **one way** while Chase is literally 1.8 miles from my house, allowing me to go home for lunch. I do have an apartment and an awesome roommate that I know wont be late on his portion of rent, so paying bills with 20hours a week isn't the issue. It's the spending money and being broke all the time.\n\nI previously worked at Wal-Mart and took home just about 400 dollars every other week. So I know i can survive on this income. I just don't know whether I should go for Chase as I could definitely see myself having a career there. I'm a math major likely going to become an actuary, so Chase could provide excellent opportunities for me **eventually**."
8384
],
84-
"reasoning": false
85+
"reasoning": False
8586
})
8687
headers = {
8788
'Ocp-Apim-Subscription-Key': '<your_subscription_key>',

0 commit comments

Comments
 (0)