Created
March 5, 2023 08:59
-
-
Save rana01645/60027589abb0c7bc164149f9cd98b089 to your computer and use it in GitHub Desktop.
This file contains 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
write a php api class for this | |
curl https://api.openai.com/v1/chat/completions \ | |
-H "Authorization: Bearer $OPENAI_API_KEY" \ | |
-H "Content-Type: application/json" \ | |
-d '{ | |
"model": "gpt-3.5-turbo", | |
"messages": [{"role": "user", "content": "What is the OpenAI mission?"}] | |
}' |
NasirNobin
commented
Mar 5, 2023
•
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment