Skip to content

Latest commit

 

History

History
 
 

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 

README.md

Chat with a deployed Microsoft Foundry model (Python)

Chat with a deployed Microsoft Foundry model (Python)

Learn how to chat directly with deployed Microsoft Foundry models using Python in Visual Studio Code.

Try it yourself in Microsoft Foundry: ai.azure.com

Prerequisites

Run the Sample

  1. Navigate to the folder: cd Samples/Chat-With_Model
  2. Install dependencies:
    • pip install azure-ai-projects --pre
    • pip install openai azure-identity python-dotenv
  3. Use the Azure CLI command az login or az login --use-device-code to authenticate.
  4. Set up environment variables: copy .env.example .env
  5. Run the script: python chat-with-model.py