Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- API_KEY="your-api-key"
- MODEL="text-davinci-002"
- PROMPT="Your prompt here"
- curl -X POST "https://api.openai.com/v1/engines/$MODEL/completions" \
- -H "Content-Type: application/json" \
- -H "Authorization: Bearer $API_KEY" \
- -d @<(cat <<EOF
- {
- "prompt": "$PROMPT",
- "max_tokens": 60
- }
- EOF
- )
Advertisement
Comments
-
- *zzzzzzzzzz*
-
- impossible skill programming language ALL
-
- Go assembly and Brainfuck me
-
- No joke me
Add Comment
Please, Sign In to add comment
Advertisement