Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Data Days is here! Join us now for 60+ days of learning, challenges, and connection. Learn more

Reply
ADinu59
Regular Visitor

"detail": "Not Found"

I am getting this message ({"detail": "Not Found"}) when I try to access the endpoint ( both in browser and in my app). Any hint what am I missing?

4 REPLIES 4
pdecarlo
Microsoft Employee
Microsoft Employee

@ADinu59,

Apologies for not understanding,  what is the endpoint you are attempting to reach?

Anonymous
Not applicable

@ADinu59 , I figured out the correct url to use in postman/code/curl

https://polite-ground-030dc3103.4.azurestaticapps.net/api/v1/openai/deployments/gpt-35-turbo-16k/cha... 

where you can substitute the model name in the url

some further useful documentation can be found here: 

https://microsoft.github.io/azure-openai-service-proxy/raw-api-access/chat-completion/

just beware, the documentation is not up to date. you need the /chat/ bit in the url or it will complain about invalid completion for the model. 

Anonymous
Not applicable

Hi @ADinu59 , the endpoint can't be just called like that in the browser. Got to use the correct libraries to use it. try following python code to get started in a fabric notebook:

 

%pip install openai==1.12.0

import openai
from openai import AzureOpenAI

client = AzureOpenAI(
api_key="your-api-key-from-the-step-previous",
api_version="2023-09-01-preview",
)

MESSAGES = [
{"role": "system", "content": """you are a funny bot"""},
{"role": "user", "content": "tell me a joke about pumpkins"},
{"role": "assistant","content": "Why do pumpkins sit on people's porches? They have no hands to knock on the door!"},
]
MESSAGES.append({"role": "user", "content": "tell me a joke about frogs"})

completion = client.chat.completions.create(model="gpt-35-turbo", messages=MESSAGES,temperature=0.9)
print(completion.choices[0].message.content)

Helpful resources

Announcements
Fabric Data Days is here Carousel

Fabric Data Days 2026

Don't miss out on Data Days, June 15 through August 7. Learn Fabric, Power BI, SQL, AI and more.

June Fabric Update Carousel

Fabric Monthly Update - June 2026

Check out the June 2026 Fabric update to learn about new features.