diff --git a/examples/azure.py b/examples/azure.py index 6936c4cb0e..dee3d422cb 100755 --- a/examples/azure.py +++ b/examples/azure.py @@ -22,6 +22,13 @@ ) print(completion.to_json()) +# The code above uses the Chat Completions API to generate text, but this can also be accomplished with the Responses API +# response = client.responses.create( +# model="deployment-name", +# input="How do I output all files in a directory using Python?", +# ) +# print(response.to_json()) + deployment_client = AzureOpenAI( api_version=api_version, @@ -41,3 +48,10 @@ ], ) print(completion.to_json()) + +# The code above uses the Chat Completions API to generate text, but this can also be accomplished with the Responses API +# response = deployment_client.responses.create( +# model="", +# input="How do I output all files in a directory using Python?", +# ) +# print(response.to_json())