I referred langchain documents I guess every thing is as per the document when I tried to deploy application in streamlit cloud I am getting pydantic.v1.error_wrappers.ValidationError: This app has encountered an error. The original error message is redacted to prevent data leaks. Full error details have been recorded in the logs (if you’re on Streamlit Cloud, click on ‘Manage app’ in the lower right of your app).
Traceback:
File “/home/adminuser/venv/lib/python3.12/site-packages/streamlit/runtime/scriptrunner/exec_code.py”, line 85, in exec_func_with_error_handling
result = func()
^^^^^^
File “/home/adminuser/venv/lib/python3.12/site-packages/streamlit/runtime/scriptrunner/script_runner.py”, line 576, in code_to_exec
exec(code, module.dict)
File “/mount/src/carbot1/app.py”, line 29, in
llm = ChatGroq(model=“Llama3-8b-8192”)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “/home/adminuser/venv/lib/python3.12/site-packages/langchain_core/load/serializable.py”, line 113, in init
super().init(*args, **kwargs)
File “/home/adminuser/venv/lib/python3.12/site-packages/pydantic/v1/main.py”, line 341, in init
raise validation_error When I run in my local system all works well but its an error when attempted to deploy it can any body help with regard to GROQ_API_KEY = os.getenv(“GROQ_API_KEY”)
llm = ChatGroq(model=“Llama3-8b-8192”)
thanks in advance