Hello strawberrybfs,
Looks like you're working through the tutorial for deploying models. Typically, when I have a "Resource not found" error I like to verify my API endpoint and key. You can use a debugger or print to your terminal with a print statement above the chat completions client.
print(endpoint, key) ## if you want to debug using print statements
client = ChatCompletionsClient(endpoint=api_llama.AZURE_ENDPOINT, credential=AzureKeyCredential(api_llama.API_KEY), )
model_info = client.get_model_info()
Check that your env variables match the endpoints setup from the earlier steps in the tutorial. As a reminder to ensure the security of your applications and data, never share your API keys with anyone.
If they env variables are as you expect. You can use AI foundry for example code to compare your code.
An alternate route would be to use something like Postman to do a API call using the same tutorial but instead of using python select REST as the programming language.