langchain-ai / langchainjs

🦜🔗 Build context-aware reasoning applications 🦜🔗
https://js.langchain.com/docs/
MIT License
12.54k stars 2.14k forks source link

[Feature request] Azure OpenAI Assistants #4338

Closed tsuzaki430 closed 6 months ago

tsuzaki430 commented 8 months ago

Hi, Microsoft has released Assistants API on Azure. I hope it will be supported on langchain.

https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/openai/openai-assistants/README.md https://learn.microsoft.com/en-us/azure/ai-services/openai/concepts/assistants

dosubot[bot] commented 8 months ago

🤖

Hey @tsuzaki430, great to see you back! Hope you're doing well.

Thank you for your feature request. It seems like you're interested in having the Azure OpenAI Assistants API supported in the LangChainJS framework.

Based on the context provided, there have been similar requests in the past and changes have been made to the LangChainJS codebase to support Azure OpenAI. Specifically, a new class AzureOpenAI was created to handle Azure OpenAI related operations. You can find more details about these changes in the AzureOpenAI class.

However, the current version of LangChainJS (0.1.16) does not yet support the Azure OpenAI Assistants API. The Azure OpenAI Assistants API is a newer offering from Microsoft and it seems like it has not been integrated into LangChainJS yet.

Given the previous successful integrations of Azure OpenAI and OpenAssistant LLM, it's reasonable to expect that the Azure OpenAI Assistants API could be integrated into LangChainJS in a similar manner. However, this would require changes to the codebase and potentially the addition of new classes or methods to handle the specific operations of the Azure OpenAI Assistants API.

I recommend keeping an eye on the LangChainJS repository for updates. If the maintainers decide to implement this feature, it will likely be announced in the release notes of a future version.

If you have any further questions or need more information, feel free to ask. I'm here to help!

-Dosu

Sources


This response is meant to be useful and save you time. It is not meant to be a precise solution, but rather a starting point for your own research.

Help me be more useful! Please leave a 👍 if this is helpful and 👎 if it is irrelevant.

If you want to continue the conversation, start your reply with @dosu-bot.

tsuzaki430 commented 6 months ago

Hi,

I found get it works in Azure OpenAI Assistant Api with 'openai' package.

https://github.com/openai/openai-node/issues/701 This issue's comversation about azure assistant API in openai package example.

So I close this issue and thank you for langchain.js every contributors.

MNorgren commented 1 month ago

Any update on this? I am still not seeing support for Azure OpenAI Assistants. Anyone else?

halimb commented 1 month ago

Same here, it's the main limitation keeping me from migrating to LangChain