Basic Completions Example Sdk
azure-openai-samplesBasic_SamplesCompletions
Export
Python SDK Samples
Create a Completion
Given a prompt, the model will return one or more predicted completions, and can also return the probabilities of alternative tokens at each position.
[ ]
[11]
True
Setup Parameters
Here we will read the environment variables from dotenv file to setup deployment name, openai api base, openai api key and openai api version.
[12]
[ ]