AttributeError: module 'openai' has no attribute 'Thread'

Any other file or directory named “openai” in the directory or path, including the script you write, can override the python installation’s library.

Then it seems you are using an uppercase call for an object instance or doing something odd with the code of yours that doesn’t work.

Bouncing over to “API Reference”:

from openai import OpenAI
client = OpenAI()

empty_thread = client.beta.threads.create()
print(empty_thread)