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

Get certified as a Fabric Data Engineer: Check your eligibility for a 50% exam voucher offer and join us for free live learning sessions to get prepared for Exam DP-700. Get started

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
Feb2025 Sticker Challenge

Join our Community Sticker Challenge 2025

If you love stickers, then you will definitely want to check out our Community Sticker Challenge!

JanFabricDE_carousel

Fabric Monthly Update - January 2025

Explore the power of Python Notebooks in Fabric!

JanFabricDW_carousel

Fabric Monthly Update - January 2025

Unlock the latest Fabric Data Warehouse upgrades!