Last active
February 2, 2023 14:15
-
-
Save gducharme/e21e58e1cedcac1c81d4cd336de5e6a7 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
| #export OPENAI_TOKEN= | |
| # models can be expensive or cheap. | |
| # text-davinci-003 is powerful and is 0.002 dollar per token | |
| # Get a token from https://beta.openai.com/account/api-keys | |
| curl https://api.openai.com/v1/completions \ | |
| -H 'Content-Type: application/json' \ | |
| -H "Authorization: Bearer $OPENAI_TOKEN" \ | |
| -v \ | |
| -d '{ | |
| "model": "text-davinci-003", | |
| "prompt": "When I use a curl command to search for prs on api.github.com/search/issues, I receive an error message saying (The listed users and repositories cannot be searched either because the resources do not exist or you do not have permission to view them.) but I can see them inside of github search interface", | |
| "max_tokens": 2000, | |
| "temperature": 0 | |
| }' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment