Files
agent-framework/dotnet/samples/GettingStarted/AgentProviders/Agent_With_OpenAIChatCompletion
T
Stephen Toub a414461570 .NET: Re-enable ImplicitUsings in samples and clean up NoWarns (#1060)
* Re-enable ImplicitUsings in samples and clean up NoWarns

* Fix dotnet format

* More dotnet format

* More dotnet format

---------

Co-authored-by: Chris <66376200+crickman@users.noreply.github.com>
a414461570 ยท 2025-10-01 19:37:03 +00:00
History
..

Prerequisites

Before you begin, ensure you have the following prerequisites:

  • .NET 8.0 SDK or later
  • OpenAI api key

Set the following environment variables:

$env:OPENAI_APIKEY="*****" # Replace with your OpenAI api key
$env:OPENAI_MODEL="gpt-4o-mini"  # Optional, defaults to gpt-4o-mini