Spaces:
Running
Running
| curl https://api.openai.com/v1/chat/completions \ | |
| -H "Content-Type: application/json" \ | |
| -H "Authorization: Bearer $OPENAI_API_KEY" \ | |
| -d '{ | |
| "model": "o4-mini", | |
| "messages": [ | |
| { | |
| "role": "developer", | |
| "content": [ | |
| { | |
| "type": "text", | |
| "text": "system message here" | |
| } | |
| ] | |
| }, | |
| { | |
| "role": "user", | |
| "content": [ | |
| { | |
| "type": "text", | |
| "text": "user message here" | |
| } | |
| ] | |
| } | |
| ], | |
| "response_format": { | |
| "type": "text" | |
| } | |
| }' |