runtime error

File "/usr/local/lib/python3.10/site-packages/gradio/helpers.py", line 276, in create await self.cache() File "/usr/local/lib/python3.10/site-packages/gradio/helpers.py", line 332, in cache prediction = await Context.root_block.process_api( File "/usr/local/lib/python3.10/site-packages/gradio/blocks.py", line 1392, in process_api result = await self.call_function( File "/usr/local/lib/python3.10/site-packages/gradio/blocks.py", line 1097, in call_function prediction = await anyio.to_thread.run_sync( File "/usr/local/lib/python3.10/site-packages/anyio/to_thread.py", line 56, in run_sync return await get_async_backend().run_sync_in_worker_thread( File "/usr/local/lib/python3.10/site-packages/anyio/_backends/_asyncio.py", line 2177, in run_sync_in_worker_thread return await future File "/usr/local/lib/python3.10/site-packages/anyio/_backends/_asyncio.py", line 859, in run result = context.run(func, *args) File "/usr/local/lib/python3.10/site-packages/gradio/utils.py", line 703, in wrapper response = f(*args, **kwargs) File "/home/user/app/app.py", line 68, in CustomChatGPT reply = send_message(messages + [current_message]) File "/home/user/app/app.py", line 16, in send_message response = openai.ChatCompletion.create( File "/usr/local/lib/python3.10/site-packages/openai/lib/_old_api.py", line 39, in __call__ raise APIRemovedInV1(symbol=self._symbol) openai.lib._old_api.APIRemovedInV1: You tried to access openai.ChatCompletion, but this is no longer supported in openai>=1.0.0 - see the README at https://github.com/openai/openai-python for the API. You can run `openai migrate` to automatically upgrade your codebase to use the 1.0.0 interface. Alternatively, you can pin your installation to the old version, e.g. `pip install openai==0.28` A detailed migration guide is available here: https://github.com/openai/openai-python/discussions/742 IMPORTANT: You are using gradio version 3.39.0, however version 4.29.0 is available, please upgrade. --------

Container logs:

Fetching error logs...