Last active
May 5, 2022 18:55
-
-
Save umutbasal/d7dedaf0fc886a5e2939fa1788e79e71 to your computer and use it in GitHub Desktop.
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
alias pastesafsata='curl -s https://api.openai.com/v1/engines/text-davinci-002/completions \ | |
-H "Content-Type: application/json" \ | |
-H "Authorization: Bearer !!!!!!!! ENTER YOUR TOKENNN" \ | |
-d "{ | |
\"prompt\": \"Tweet: $(pbpaste)\n\n/\/\What kinda logical fallcy this tweet includes? Why?\n\", | |
\"temperature\": 0.5, | |
\"max_tokens\": 60, | |
\"top_p\": 1, | |
\"frequency_penalty\": 0, | |
\"presence_penalty\": 0 | |
}" | jq ".choices[] | .text" | |
' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment