@Magnus Vinterhav Welcome to Microsoft Q&A Forum, Thank you for posting your query here!
.
I created a model and was able to access the endpoint using below curl command. It worked fine:
curl -X POST "https://XXXXXX.openai.azure.com/openai/deployments/text-embedding-ada-002/embeddings?api-version=2024-02-01" -H "Content-Type: application/json" -H "api-key: 48b4fXXXXXXXXXX664" -d "{\"input\": \"Hello, world!\"}"
. Plan 1:
An Azure OpenAI resource with the text-embedding-ada-002 (Version 2) model deployed. This model is currently only available in certain regions.** Ensure that your resource is in mentioned region.
.
Plan 2:
Try with api-version 2024-02-01.
.
Plan 3:
Ensure that you have provided the correct deployment model name. Please confirm that again from the Azure OpenAi studio.
.
Hope this helps. If you have any follow-up questions, please let me know. I would be happy to help.
**
Please do not forget to "Accept the answer” and “up-vote” wherever the information provided helps you, this can be beneficial to other community members.