Created
October 25, 2023 17:24
-
-
Save iceener/9604bbaa7fbdaf144353b3874f2535e0 to your computer and use it in GitHub Desktop.
Hello OpenAI
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 -X POST \ | |
https://api.openai.com/v1/chat/completions \ | |
-H "Authorization: Bearer OPENAI_API_KEY" \ | |
-H 'Content-Type: application/json' \ | |
-d '{ | |
"messages": [{ "role": "user", "content": "Hello!" }], | |
"model": "gpt-3.5-turbo" | |
}' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment