client = OpenAI( # This is the default and can be omitted
api_key="你申请的 API key", )
response = client.responses.create(
model="gpt-4o",
instructions="You are a coding assistant that talks like a pirate.", input="How do I check if a Python object is an instance of a class?", )