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

Join us at the 2025 Microsoft Fabric Community Conference. March 31 - April 2, Las Vegas, Nevada. Use code FABINSIDER for $400 discount. Register now

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
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code FABINSIDER for a $400 discount!

FebFBC_Carousel

Fabric Monthly Update - February 2025

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

March2025 Carousel

Fabric Community Update - March 2025

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