[GH-ISSUE #1906] [BUG]: Unable to use AzureOpenAI embedder #1237

Closed
opened 2026-02-22 18:23:52 -05:00 by yindo · 3 comments
Owner

Originally created by @ehengtan on GitHub (Jul 19, 2024).
Original GitHub issue: https://github.com/Mintplex-Labs/anything-llm/issues/1906

Originally assigned to: @timothycarambat on GitHub.

How are you running AnythingLLM?

Docker (remote machine)

What happened?

Failed to embed using AzureOpenAI embedder. Always returns 'Failed to load resource: the server responded with a status of 504 (Gateway Time-out)'

I tried my key offline and it seems like api_version is a required parameter, and its missing from the settings page. Could that be the reason?

py
setting

Are there known steps to reproduce?

Change your embedding provider to AzureOpenAI.
Upload any file and it'll fail.

Originally created by @ehengtan on GitHub (Jul 19, 2024). Original GitHub issue: https://github.com/Mintplex-Labs/anything-llm/issues/1906 Originally assigned to: @timothycarambat on GitHub. ### How are you running AnythingLLM? Docker (remote machine) ### What happened? Failed to embed using AzureOpenAI embedder. Always returns 'Failed to load resource: the server responded with a status of 504 (Gateway Time-out)' I tried my key offline and it seems like api_version is a required parameter, and its missing from the settings page. Could that be the reason? ![py](https://github.com/user-attachments/assets/c080582d-06c2-4f17-ad53-6146536eb21e) ![setting](https://github.com/user-attachments/assets/ed84afd9-d452-43f8-bbef-9fe4c39a633f) ### Are there known steps to reproduce? Change your embedding provider to AzureOpenAI. Upload any file and it'll fail.
yindo added the needs info / can't replicate label 2026-02-22 18:23:52 -05:00
yindo closed this issue 2026-02-22 18:23:52 -05:00
Author
Owner

@timothycarambat commented on GitHub (Jul 22, 2024):

Upload any file and it'll fail.

When you mean upload, do you mean embed? The embedder is not called during file upload, only embedding

@timothycarambat commented on GitHub (Jul 22, 2024): > Upload any file and it'll fail. When you mean upload, do you mean `embed`? The embedder is not called during file upload, only embedding
Author
Owner

@timothycarambat commented on GitHub (Jul 22, 2024):

@ehengtan Okay so i am fairly certain this is due to a bad client configuration - here is my walkthrough that does not replicate the reported bug:

First in the AnythingLLM UI i fill out the endpoint and key, which i acquire from this screen:
Screenshot 2024-07-22 at 1 14 41 PM

Then in the Azure OpenAI studio I create an embedder model deployment
Screenshot 2024-07-22 at 1 16 13 PM

I put the text-embedder label into AnythingLLM.

Embedding documents works successfully.

@timothycarambat commented on GitHub (Jul 22, 2024): @ehengtan Okay so i am fairly certain this is due to a bad client configuration - here is my walkthrough that does not replicate the reported bug: First in the AnythingLLM UI i fill out the endpoint and key, which i acquire from this screen: <img width="1042" alt="Screenshot 2024-07-22 at 1 14 41 PM" src="https://github.com/user-attachments/assets/d071b950-c0e3-45ac-9c28-1c36eca3244b"> Then in the Azure OpenAI studio I create an embedder model deployment <img width="620" alt="Screenshot 2024-07-22 at 1 16 13 PM" src="https://github.com/user-attachments/assets/46b37598-a904-4e7d-8f24-5e177408b510"> I put the `text-embedder` label into AnythingLLM. Embedding documents works successfully.
Author
Owner

@oiao commented on GitHub (Jul 19, 2025):

@timothycarambat Same issue here. Azure OpenAI is missing a field and is currently broken. The full request URL should look like this: ${BASE_URL}/openai/deployments/${DEPLOYMENT_ID}/chat/completions?api-version=${API_VERSION}. Currently, there is no way to provide the API_VERSION string in the settings.

@oiao commented on GitHub (Jul 19, 2025): @timothycarambat Same issue here. Azure OpenAI is missing a field and is currently broken. The full request URL should look like this: `${BASE_URL}/openai/deployments/${DEPLOYMENT_ID}/chat/completions?api-version=${API_VERSION}`. Currently, there is no way to provide the `API_VERSION` string in the settings.
yindo changed title from [BUG]: Unable to use AzureOpenAI embedder to [GH-ISSUE #1906] [BUG]: Unable to use AzureOpenAI embedder 2026-06-05 14:39:40 -04:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: Mintplex-Labs/anything-llm#1237