import os

from openai import OpenAI


api_key = os.getenv("OPENAI_API_KEY", "").strip()
if not api_key:
    raise RuntimeError("OPENAI_API_KEY tanimli degil.")

client = OpenAI(api_key=api_key)

response = client.responses.create(
    model="gpt-4o-mini",
    input="merhaba",
    store=True,
)

print(response.output_text)


