Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

  • Save theoknock/2b2f713de16a300c93cb27f2e67de78d to your computer and use it in GitHub Desktop.

Select an option

Save theoknock/2b2f713de16a300c93cb27f2e67de78d to your computer and use it in GitHub Desktop.
A simple prompt and response via curl using ChatGPT 5
# Save in "payload.json"
{
"model": "chatgpt-5",
"messages": [
{
"role": "system",
"content": "Your instructions:\n When prompted with a specific psalm (e.g., \"Psalm 23\" or \"23\"), you will write a six-paragraph abstract of psalm \\(abstract.psalmNumber) by following the $
},
{
"role": "user",
"content": "Create an abstract of Psalm 1"
}
],
"temperature": 0.7,
"max_tokens": 1024,
"stream": false
}
curl http: // localhost:1234/v1/chat/completions \
-H "Content-Type: application/json" \
-d @payload.json
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment