![]() You can also use the Completions API and the older text-davinci-003 artificial intelligence model to perform a single-turn query. This example uses the Chat API and the gpt-3.5-turbo artificial intelligence model to perform a single-turn query or turn-based chat, similar to what you can do on the ChatGPT website. To change the way Postman configures the authorization, you can update the settings under the Authorization tab of the request, folder, or collection. You may need to un-hide the auto-generated headers. Look under the Headers tab of any request to see for yourself. ![]() You can look under the Authorization tab and see how Postman will now add an Authorization header with your API key to every request in the collection, unless otherwise specified. Under the Variables tab, create a new collection variable token and paste the value of your API key.In Postman, select your fork of the OpenAI collection.On the API Keys page of the OpenAI website, create a new API key under API Keys > + Create new secret key, and then copy the key to your clipboard for the next step.Update the collection variable token with your own OpenAI API key. If you leave the checkbox selected to Watch original collection, you will receive notifications when new endpoints are added to the collection. Enter a label for your fork, and select a workspace to save it to.Select the Run in Postman button below to fork the public collection to your own workspace.Code samples to integrate into your own bots or applications. ![]() A Postman Collection with authorized API requests.Use variables to store and reuse information.Discover different AI models provided by OpenAI.Make your first API request to simulate a ChatGPT query. ![]() This is a beginner's introduction to OpenAI's API in Postman. ![]()
0 Comments
Leave a Reply. |