langchain
langchain copied to clipboard
ValueError when using Azure and chat-zero-shot-react-description agent
I am trying to follow the MRKL chat example but with AzureOpenAI (text-davinci-003
) and AzureChatOpenAI (gpt-3.5-turbo
). However, I am running into this error:
ValueError: `stop` found in both the input and default params.
I have confirmed that AzureOpenAI and AzureChatOpenAI work independently from the agent:

I am using langchain version 0.0.117.
Seems related to this WIP PR: https://github.com/hwchase17/langchain/pull/1817
This is indeed one of the errors that I faced as well!
you can quick fix that by commenting line 266 on openai.py chatmodels i wont recommend it but its working after doing that
Hi, @damosuzuki! I'm Dosu, and I'm helping the LangChain team manage their backlog. I wanted to let you know that we are marking this issue as stale.
From what I understand, the issue is about a ValueError
that occurs when using AzureOpenAI and AzureChatOpenAI with the MRKL chat example. Another user, eavanvalkenburg, confirmed facing the same error. The suggested resolution was to comment line 266 on openai.py chatmodels, but it is not recommended to implement this fix.
Before we close this issue, we wanted to check with you if it is still relevant to the latest version of the LangChain repository. If it is, please let us know by commenting on the issue. Otherwise, feel free to close the issue yourself or it will be automatically closed in 7 days.
Thank you for your understanding and contribution to the LangChain project!