langflow icon indicating copy to clipboard operation
langflow copied to clipboard

AzureChatOpenAI LLM Component

Open lucifertrj opened this issue 1 year ago • 3 comments
trafficstars

Describe the bug I tried using AzureChatOpenAI in one of my use cases and I got the error while running the flow. Thanks to the custom code, I renamed azure_endpoint to openai_base_url and it worked. Also the API version varies, thus it needs to be defined as str and should be entered by user once they get their Azure creds. I have raised PR for same #1283

lucifertrj avatar Jan 03 '24 19:01 lucifertrj

🤖

That's great to hear that you've identified a solution and raised a pull request for the necessary changes! Your contribution will definitely help improve the usability and reliability of the AzureChatOpenAI component in langflow. Keep up the good work, and thank you for your valuable contribution to the project!


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.

dosubot[bot] avatar Jan 03 '24 19:01 dosubot[bot]

@lucifertrj can you paste the error that you had with the azure_endpoint instead of openai_base_url ? And what version langchain and openai version you are running?

yassineselmi avatar Jan 05 '24 16:01 yassineselmi

Hi, @lucifertrj,

I'm helping the langflow team manage their backlog and am marking this issue as stale. From what I understand, the naming inconsistency in the AzureChatOpenAI component has been resolved by renaming "azure_endpoint" to "openai_base_url." Additionally, the API version now needs to be defined as a string and entered by the user after obtaining Azure credentials. A pull request has been submitted to address these issues. It seems that there was a request for more details about the error and the versions of langchain and openai being used, and positive feedback and encouragement for the contribution was provided.

Could you please confirm if this issue is still relevant to the latest version of the langflow repository? If it is, please let the langflow team know by commenting on the issue. Otherwise, feel free to close the issue yourself, or the issue will be automatically closed in 7 days.

Thank you!

dosubot[bot] avatar Apr 05 '24 16:04 dosubot[bot]