Basic Completions Example Restapi
azure-openai-samplesBasic_SamplesCompletions
Export
REST API Reference 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.
[13]
True
Setup Parameters
Here we will load the configurations from an .env file to setup deployment_name, openai_api_base, openai_api_key and openai_api_version.
[14]
[19]
Hello! Welcome to the world!
[ ]