[GH-ISSUE #1707] NPM openai and @langchain/openai vs. Azure OpenAI? #1117

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

Originally created by @ericthomas1 on GitHub (Jun 17, 2024).
Original GitHub issue: https://github.com/Mintplex-Labs/anything-llm/issues/1707

Hello,

The server/package.json file lists @azure/opena, @langchain/openai and openai as dependencies of Anything LLM.

Are all of these required when using Azure OpenAI or will @azure/openai suffice?

Thank you

Originally created by @ericthomas1 on GitHub (Jun 17, 2024). Original GitHub issue: https://github.com/Mintplex-Labs/anything-llm/issues/1707 Hello, The `server/package.json` file lists `@azure/opena`, `@langchain/openai` and `openai` as dependencies of Anything LLM. Are **all** of these required when using _Azure_ OpenAI or will `@azure/openai` suffice? Thank you
yindo closed this issue 2026-02-22 18:23:11 -05:00
Author
Owner

@timothycarambat commented on GitHub (Jun 17, 2024):

If using Azure you need @azure/openai because their library is vastly different from the regular OpenAI one. The langchain import is a wrapper for OpenAI to normalize its interface for other providers.

Can I ask what you are doing since this is the ~third issue of this type you have opened?? These types of questions would be better on discord than Github issues since it sounds very specific to what you are trying to accomplish?

@timothycarambat commented on GitHub (Jun 17, 2024): If using Azure you need `@azure/openai` because their library is vastly different from the regular OpenAI one. The langchain import is a wrapper for OpenAI to normalize its interface for other providers. Can I ask what you are doing since this is the ~third issue of this type you have opened?? These types of questions would be better on discord than Github issues since it sounds very specific to what you are trying to accomplish?
Author
Owner

@ericthomas1 commented on GitHub (Jun 17, 2024):

I would have totally joined the Discord and posed these questions but my org doesn't allow it. You've been a great help in answering and I will not abuse the GitHub Issues. Thanks again.

@ericthomas1 commented on GitHub (Jun 17, 2024): I would have totally joined the Discord and posed these questions but my org doesn't allow it. You've been a great help in answering and I will not abuse the GitHub Issues. Thanks again.
Author
Owner

@timothycarambat commented on GitHub (Jun 17, 2024):

@ericthomas1 Ah, understood 👍

@timothycarambat commented on GitHub (Jun 17, 2024): @ericthomas1 Ah, understood 👍
yindo changed title from NPM `openai` and `@langchain/openai` vs. Azure OpenAI? to [GH-ISSUE #1707] NPM `openai` and `@langchain/openai` vs. Azure OpenAI? 2026-06-05 14:39:04 -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#1117