runtime error
2024-06-08 16:27:08 - Chainlit data layer initialized Traceback (most recent call last): File "/home/user/.local/bin/chainlit", line 8, in <module> sys.exit(cli()) ^^^^^ File "/home/user/.local/lib/python3.11/site-packages/click/core.py", line 1157, in __call__ return self.main(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/user/.local/lib/python3.11/site-packages/click/core.py", line 1078, in main rv = self.invoke(ctx) ^^^^^^^^^^^^^^^^ File "/home/user/.local/lib/python3.11/site-packages/click/core.py", line 1688, in invoke return _process_result(sub_ctx.command.invoke(sub_ctx)) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/user/.local/lib/python3.11/site-packages/click/core.py", line 1434, in invoke return ctx.invoke(self.callback, **ctx.params) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/user/.local/lib/python3.11/site-packages/click/core.py", line 783, in invoke return __callback(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/user/.local/lib/python3.11/site-packages/chainlit/cli/__init__.py", line 154, in chainlit_run run_chainlit(target) File "/home/user/.local/lib/python3.11/site-packages/chainlit/cli/__init__.py", line 56, in run_chainlit load_module(config.run.module_name) File "/home/user/.local/lib/python3.11/site-packages/chainlit/config.py", line 412, in load_module spec.loader.exec_module(module) File "<frozen importlib._bootstrap_external>", line 940, in exec_module File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed File "/home/user/app/app.py", line 4, in <module> client = AsyncOpenAI() ^^^^^^^^^^^^^ File "/home/user/.local/lib/python3.11/site-packages/openai/_client.py", line 302, in __init__ raise OpenAIError( openai.OpenAIError: The api_key client option must be set either by passing api_key to the client or by setting the OPENAI_API_KEY environment variable
Container logs:
Fetching error logs...