runtime error

Exit code: 1. Reason: angchain-community instead: `from langchain_community.llms import OpenAI`. To install langchain-community run `pip install -U langchain-community`. warnings.warn( /usr/local/lib/python3.10/site-packages/langchain/llms/__init__.py:549: LangChainDeprecationWarning: Importing LLMs from langchain is deprecated. Importing from langchain will no longer be supported as of langchain==0.2.0. Please import from langchain-community instead: `from langchain_community.llms import OpenAI`. To install langchain-community run `pip install -U langchain-community`. warnings.warn( /usr/local/lib/python3.10/site-packages/langchain_community/llms/openai.py:255: UserWarning: You are trying to use a chat model. This way of initializing it is no longer supported. Instead, please use: `from langchain_community.chat_models import ChatOpenAI` warnings.warn( Traceback (most recent call last): File "/home/user/app/app.py", line 7, in <module> LLM = OpenAI(model_name=model_name, temperature=0.1) File "/usr/local/lib/python3.10/site-packages/langchain_community/llms/openai.py", line 260, in __new__ return OpenAIChat(**data) File "/usr/local/lib/python3.10/site-packages/langchain_core/_api/deprecation.py", line 216, in warn_if_direct_instance return wrapped(self, *args, **kwargs) File "/usr/local/lib/python3.10/site-packages/langchain_core/load/serializable.py", line 125, in __init__ super().__init__(*args, **kwargs) File "/usr/local/lib/python3.10/site-packages/pydantic/main.py", line 214, in __init__ validated_self = self.__pydantic_validator__.validate_python(data, self_instance=self) pydantic_core._pydantic_core.ValidationError: 1 validation error for OpenAIChat Value error, Did not find openai_api_key, please add an environment variable `OPENAI_API_KEY` which contains it, or pass `openai_api_key` as a named parameter. [type=value_error, input_value={'model_kwargs': {'model_...allowed_special': 'all'}, input_type=dict] For further information visit https://errors.pydantic.dev/2.10/v/value_error

Container logs:

Fetching error logs...