16 lines
261 B
Python
16 lines
261 B
Python
from openai import OpenAI
|
|
|
|
client = OpenAI()
|
|
|
|
response = client.chat.completions.create(
|
|
model="gpt-4o-mini",
|
|
messages=[
|
|
{
|
|
"role": "user",
|
|
"content": "Write a haiku about TensorZero.",
|
|
}
|
|
],
|
|
)
|
|
|
|
print(response)
|