Created
May 26, 2023 04:51
-
-
Save leduqueiroz/dce1fe292202124f2f2de155f1dbf3cb to your computer and use it in GitHub Desktop.
postman + openapi
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
curl --location 'https://api.openai.com/v1/chat/completions' \ | |
--header 'Content-Type: application/json' \ | |
--header 'Authorization: {APIKEY} \ | |
--data '{ | |
"model": "gpt-3.5-turbo", | |
"messages": [ | |
{ | |
"role": "system", | |
"content": "{TEMPLATE COM ENCODED}" | |
}, | |
{ | |
"role": "assistant", | |
"content": "{EXEMPLO GERADO NO BROWSER}" | |
}, | |
{ | |
"role": "assistant", | |
"content": "{EXEMPLO GERADO NO BROWSER}" | |
}, | |
... | |
{ | |
"role": "user", | |
"content": "{SUA SOLICITAÇÃO}" | |
} | |
] | |
}' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment