Hugging Face's logo
Runtime error

runtime error

/user/app/public_app.py", line 55, in get_chain date_response = date_extractor.run(query) File "/home/user/.local/lib/python3.10/site-packages/langchain/chains/base.py", line 315, in run return self(args[0], callbacks=callbacks, tags=tags, metadata=metadata)[ File "/home/user/.local/lib/python3.10/site-packages/langchain/chains/base.py", line 181, in __call__ raise e File "/home/user/.local/lib/python3.10/site-packages/langchain/chains/base.py", line 175, in __call__ self._call(inputs, run_manager=run_manager) File "/home/user/.local/lib/python3.10/site-packages/langchain/chains/llm.py", line 92, in _call response = self.generate([inputs], run_manager=run_manager) File "/home/user/.local/lib/python3.10/site-packages/langchain/chains/llm.py", line 102, in generate return self.llm.generate_prompt( File "/home/user/.local/lib/python3.10/site-packages/langchain/chat_models/base.py", line 229, in generate_prompt return self.generate(prompt_messages, stop=stop, callbacks=callbacks, **kwargs) File "/home/user/.local/lib/python3.10/site-packages/langchain/chat_models/base.py", line 124, in generate raise e File "/home/user/.local/lib/python3.10/site-packages/langchain/chat_models/base.py", line 114, in generate self._generate_with_cache( File "/home/user/.local/lib/python3.10/site-packages/langchain/chat_models/base.py", line 261, in _generate_with_cache return self._generate( File "/home/user/.local/lib/python3.10/site-packages/langchain/chat_models/openai.py", line 371, in _generate response = self.completion_with_retry(messages=message_dicts, **params) File "/home/user/.local/lib/python3.10/site-packages/langchain/chat_models/openai.py", line 313, in completion_with_retry retry_decorator = self._create_retry_decorator() File "/home/user/.local/lib/python3.10/site-packages/langchain/chat_models/openai.py", line 302, in _create_retry_decorator retry_if_exception_type(openai.error.Timeout) AttributeError: module 'openai' has no attribute 'error'

Container logs:

Fetching error logs...