opencv-python openai func_timeout