Hi, I want to use Azure OpenAI API in the plug-in "ZoteroGPT" in Zotero. When I added Open AI API directly, it ran successfully. When I wanted to add Azure OpenAI API, it can not run with the same error (I will mention later). So I want to transfer Azure API to OpenAI API by a note provided by the author in https://github.com/diemus/azure-openai-proxy/blob/main/README.md
But when I ran the code in the cmd, it faced the error. And then I changed the URL by the Q&A in Azure but it showed the same error.
C:\Users\angku>curl https://angkulcus.openai.azure.com/v1/chat/completions -H "Content-Type: application/json" -H "Authorization: Bearer c7d28e16f********b5619b15d60c" -d '{ "model": "gpt-4o", "messages": [{"role": "user", "content": "Hello!"}] }'
{"error":{"code":"404","message": "Resource not found"}}curl: (3) URL rejected: Port number was not a decimal number between 0 and 65535
curl: (3) URL rejected: Bad hostname
curl: (3) URL rejected: Port number was not a decimal number between 0 and 65535
curl: (3) bad range specification in URL position 2:
[{role:
^
C:\Users\angku>curl https://angkulcus.openai.azure.com/openai/deployments/angkuLC4o/completions?api-version=2024-05-13 ^
More? -H "Content-Type: application/json" ^
More? -H "Authorization: Bearer c7d28e16f************b5619b15d60c" ^
More? -d "{ \"model\": \"gpt-4o\", \"messages\": [{\"role\": \"user\", \"content\": \"Hello!\"}] }"
{"error":{"code":"404","message": "Resource not found"}}
I used Windows 11 on my computer. The API has been modified to be public.
Thanks!
Shuaishuai