Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Getting AttributeError for agent = AgentType.OPENAI_FUNCTIONS #2

Open
AlefAlfa opened this issue Jul 24, 2023 · 4 comments
Open

Getting AttributeError for agent = AgentType.OPENAI_FUNCTIONS #2

AlefAlfa opened this issue Jul 24, 2023 · 4 comments

Comments

@AlefAlfa
Copy link

AttributeError: OPENAI_FUNCTIONS
Traceback:
File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/streamlit/runtime/scriptrunner/script_runner.py", line 565, in _run_script
exec(code, module.dict)
File "/Users/lev/Documents/Github/researcher-gpt/app.py", line 169, in
agent=AgentType.OPENAI_FUNCTIONS,
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/enum.py", line 786, in getattr
raise AttributeError(name) from None

@MikhailTru
Copy link

Getting the same error:
AttributeError: OPENAI_FUNCTIONS.
How to fix it?

@deter3
Copy link

deter3 commented Jul 29, 2023

using langchain is pain in the ass , hard to debug .

@annikenskywalker
Copy link

I get this error when I run the code directly. When I use "Streamlit run app.py", the app works.

@hatpick
Copy link

hatpick commented Sep 20, 2023

That's cause you are using an older version of langchain, you gotta upgrade it via pip3 install --upgrade langchain

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants