![]() # create a chat completion (gpt-3.5-turbo, gpt-4, etc.) The rest of the parameters need to be set as specified in the previous section. In order to use Microsoft Active Directory to authenticate to your Azure endpoint, you need to set the api_type to "azure_ad" and pass the acquired credential token to api_key. Microsoft Azure Active Directory Authentication Please note that for the moment, the Microsoft Azure endpoints can only be used for completion, embedding, and fine-tuning operations.įor a detailed example of how to use fine-tuning and other operations using Azure endpoints, please check out the following Jupyter notebooks: ![]() # print the completion print( completion. create( model = "gpt-3.5-turbo", messages =) # create a chat completion chat_completion = openai. # print the first model's id print( models. api_key = "sk-." # list models models = openai.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |