runtime error
nai` and import as `from langchain_openai import OpenAIEmbeddings`. warn_deprecated( Traceback (most recent call last): File "/home/user/app/app.py", line 52, in <module> db = FAISS.from_documents(docs, embeddings) File "/home/user/.local/lib/python3.10/site-packages/langchain_core/vectorstores.py", line 508, in from_documents return cls.from_texts(texts, embedding, metadatas=metadatas, **kwargs) File "/home/user/.local/lib/python3.10/site-packages/langchain_community/vectorstores/faiss.py", line 959, in from_texts embeddings = embedding.embed_documents(texts) File "/home/user/.local/lib/python3.10/site-packages/langchain_community/embeddings/openai.py", line 668, in embed_documents return self._get_len_safe_embeddings(texts, engine=engine) File "/home/user/.local/lib/python3.10/site-packages/langchain_community/embeddings/openai.py", line 494, in _get_len_safe_embeddings response = embed_with_retry( File "/home/user/.local/lib/python3.10/site-packages/langchain_community/embeddings/openai.py", line 116, in embed_with_retry return embeddings.client.create(**kwargs) File "/home/user/.local/lib/python3.10/site-packages/openai/resources/embeddings.py", line 113, in create return self._post( File "/home/user/.local/lib/python3.10/site-packages/openai/_base_client.py", line 1200, in post return cast(ResponseT, self.request(cast_to, opts, stream=stream, stream_cls=stream_cls)) File "/home/user/.local/lib/python3.10/site-packages/openai/_base_client.py", line 889, in request return self._request( File "/home/user/.local/lib/python3.10/site-packages/openai/_base_client.py", line 980, 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-SwGbB***************************************wE1G. 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...