Skip to content

Commit 57a6379

Browse files
Fix python script quickstart-groundedness.md
1 parent f0f16da commit 57a6379

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
@@ -67,8 +67,9 @@ Create a new Python file named _quickstart.py_. Open the new file in your prefer
6767
```Python
6868
import http.client
6969
import json
70-
71-
conn = http.client.HTTPSConnection("<endpoint>/contentsafety/text:detectGroundedness?api-version=2024-02-15-preview")
70+
71+
endpoint = "<my-custom-subdomain>.cognitiveservices.azure.com"
72+
conn = http.client.HTTPSConnection(endpoint)
7273
payload = json.dumps({
7374
"domain": "Generic",
7475
"task": "QnA",
@@ -79,7 +80,7 @@ Create a new Python file named _quickstart.py_. Open the new file in your prefer
7980
"groundingSources": [
8081
"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**."
8182
],
82-
"reasoning": false
83+
"reasoning": False
8384
})
8485
headers = {
8586
'Ocp-Apim-Subscription-Key': '<your_subscription_key>',

0 commit comments

Comments
 (0)