#Struggling setting up azureOpenAI

1 messages · Page 1 of 1 (latest)

supple slate
#

After searching and reading all issues and discord threads, I'm desperate enough to open this issue in a call for help.

I first wanted to go all in and setup azureAssistants directly but I'm now down to get a simple chatcompletion response.

I've checked the endpoint from the debug log in a postman call succesfully. I have some experience in developing using the Azure OpenAI endpoint so I'm quite positive I'm not missing something on that part of the setup.

I'm now getting a 401 (no body) error. Im gonna paste it below alongside the edpoints: part of the config.

on the client it shows this message: "Something went wrong. Here's the specific error message we encountered: An error occurred while processing your request. Please contact the Admin."

#

, log:

{"headers":{"apim-request-id":"b7daf3ca-7581-4b2d-baeb-c57bda948576","content-length":"161","content-type":"application/json","date":"Thu, 07 Nov 2024 14:30:33 GMT","strict-transport-security":"max-age=31536000; includeSubDomains; preload","x-content-type-options":"nosniff","x-ms-client-request-id":"Not-Set"},"level":"error","message":"[handleAbortError] AI response error; aborting request: 401 status code (no body)","stack":"Error: 401 status code (no body)\n    at APIError.generate (/app/api/node_modules/openai/error.js:48:20)\n    at OpenAI.makeStatusError (/app/api/node_modules/openai/core.js:293:33)\n    at OpenAI.makeRequest (/app/api/node_modules/openai/core.js:337:30)\n    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n    at async ChatCompletionStream._createChatCompletion (/app/api/node_modules/openai/lib/ChatCompletionStream.js:60:24)\n    at async ChatCompletionStream._runChatCompletion (/app/api/node_modules/openai/lib/AbstractChatCompletionRunner.js:135:16)","status":401}


```
 This is my endpoints config, my librechat.yaml is loading correctly: 

```
endpoints:
  azureOpenAI:
    titleModel: "gpt-4"
    #assistants: false
    plugins: false
    summarize: false
    summaryModel: "gpt-4"
    titleConvo: false
    groups:
      - group: "region-sweden"
        apiKey: "${AZURE_OPENAI_SWEDEN_KEY}"
        instanceName: "redacted-aoai-sweden" #this is the name of my azure openai resource
        version: "2024-02-15-preview"
        #assistants: false
        models:
          gpt-4:
            deploymentName: "gpt-4"
          gpt-4-turbo:
            deploymentName: "gpt-4-3"
```