runtime error

gChainDeprecationWarning: Importing OpenAIEmbeddings from langchain.embeddings is deprecated. Please replace deprecated imports: >> from langchain.embeddings import OpenAIEmbeddings with new imports of: >> from langchain_community.embeddings import OpenAIEmbeddings warn_deprecated( /usr/local/lib/python3.10/site-packages/langchain/_api/module_import.py:120: LangChainDeprecationWarning: Importing GenericLoader from langchain.document_loaders is deprecated. Please replace deprecated imports: >> from langchain.document_loaders import GenericLoader with new imports of: >> from langchain_community.document_loaders.generic import GenericLoader warn_deprecated( [nltk_data] Downloading package punkt to /home/user/nltk_data... [nltk_data] Unzipping tokenizers/punkt.zip. 2024-06-21 20:27:32,959 [INFO] [_client.py:1026] HTTP Request: POST https://api.openai.com/v1/assistants "HTTP/1.1 401 Unauthorized" Traceback (most recent call last): File "/home/user/app/app.py", line 158, in <module> general_assistant_file = client.beta.assistants.create(name="File Analysator",instructions=template, model="gpt-4-1106-preview",) File "/usr/local/lib/python3.10/site-packages/openai/resources/beta/assistants.py", line 156, in create return self._post( File "/usr/local/lib/python3.10/site-packages/openai/_base_client.py", line 1240, in post return cast(ResponseT, self.request(cast_to, opts, stream=stream, stream_cls=stream_cls)) File "/usr/local/lib/python3.10/site-packages/openai/_base_client.py", line 921, in request return self._request( File "/usr/local/lib/python3.10/site-packages/openai/_base_client.py", line 1020, in _request raise self._make_status_error_from_response(err.response) from None openai.AuthenticationError: Error code: 401 - {'error': {'message': 'Incorrect API key provided: sk-wnAvy***************************************JLcO. You can find your API key at https://platform.openai.com/account/api-keys.', 'type': 'invalid_request_error', 'param': None, 'code': 'invalid_api_key'}}

Container logs:

Fetching error logs...