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

Microsoft is giving away 50,000 FREE Microsoft Certification exam vouchers. Get Fabric certified for FREE! 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
MarchFBCvideo - carousel

Fabric Monthly Update - March 2025

Check out the March 2025 Fabric update to learn about new features.

Notebook Gallery Carousel1

NEW! Community Notebooks Gallery

Explore and share Fabric Notebooks to boost Power BI insights in the new community notebooks gallery.

April2025 Carousel

Fabric Community Update - April 2025

Find out what's new and trending in the Fabric community.