async-openai
async-openai copied to clipboard
error after uploading to the hosting
File "/root/TelegramAIBot/main.py", line 2, in <module>
from async_openai import OpenAI, CompletionResponse
File "/root/TelegramAIBot/venv/lib/python3.10/site-packages/async_openai/__init__.py", line 26, in <module>
from async_openai.schemas.completions import CompletionChoice, CompletionObject, CompletionResponse
File "/root/TelegramAIBot/venv/lib/python3.10/site-packages/async_openai/schemas/__init__.py", line 3, in <module>
from async_openai.schemas.completions import CompletionChoice, CompletionObject, CompletionResponse
File "/root/TelegramAIBot/venv/lib/python3.10/site-packages/async_openai/schemas/completions.py", line 5, in <module>
from async_openai.types.resources import BaseResource
File "/root/TelegramAIBot/venv/lib/python3.10/site-packages/async_openai/types/resources.py", line 8, in <module>
from fileio import File, FileType
File "/root/TelegramAIBot/venv/lib/python3.10/site-packages/fileio/__init__.py", line 6, in <module>
from fileio.core.imports import pathlib
File "/root/TelegramAIBot/venv/lib/python3.10/site-packages/fileio/core/__init__.py", line 3, in <module>
from fileio.core.imports import pathlib
File "/root/TelegramAIBot/venv/lib/python3.10/site-packages/fileio/core/imports.py", line 21, in <module>
from fileio.aiopath.wrap import coro_as_method_coro, func_as_method_coro, to_thread, method_as_method_coro, func_to_async_func
File "/root/TelegramAIBot/venv/lib/python3.10/site-packages/fileio/aiopath/wrap.py", line 12, in <module>
_pool = futures.ThreadPoolExecutor(max_workers = settings.core.num_workers)
File "/usr/lib/python3.10/concurrent/futures/thread.py", line 144, in __init__
raise ValueError("max_workers must be greater than 0")
ValueError: max_workers must be greater than 0