15 lines
316 B
Bash
Executable File
15 lines
316 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
curl https://api.openai.com/v1/chat/completions \
|
|
-H "Authorization: Bearer $OPENAI_API_KEY" \
|
|
-H "Content-Type: application/json" \
|
|
-d '{
|
|
"model": "gpt-4o-mini",
|
|
"messages": [
|
|
{
|
|
"role": "user",
|
|
"content": "Write a haiku about TensorZero."
|
|
}
|
|
]
|
|
}'
|