Created
July 29, 2025 20:39
-
-
Save theoknock/2b2f713de16a300c93cb27f2e67de78d to your computer and use it in GitHub Desktop.
A simple prompt and response via curl using ChatGPT 5
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # 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 | |
| } | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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