langchain icon indicating copy to clipboard operation
langchain copied to clipboard

ValueError when using Azure and chat-zero-shot-react-description agent

Open damosuzuki opened this issue 1 year ago • 1 comments

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:

image

I am using langchain version 0.0.117.

Seems related to this WIP PR: https://github.com/hwchase17/langchain/pull/1817

damosuzuki avatar Mar 21 '23 14:03 damosuzuki

This is indeed one of the errors that I faced as well!

eavanvalkenburg avatar Mar 21 '23 19:03 eavanvalkenburg

you can quick fix that by commenting line 266 on openai.py chatmodels i wont recommend it but its working after doing that

gd1m3y avatar Apr 07 '23 10:04 gd1m3y

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!

dosubot[bot] avatar Sep 19 '23 16:09 dosubot[bot]