You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[](https://codespaces.new/Azure-Samples/python-agentframework-demos)
18
18
[](https://vscode.dev/redirect?url=vscode://ms-vscode-remote.remote-containers/cloneInVolume?url=https://github.com/Azure-Samples/python-agentframework-demos)
19
19
20
-
This repository provides examples of [Microsoft Agent Framework](https://learn.microsoft.com/agent-framework/) using LLMs from [GitHub Models](https://github.com/marketplace/models), [Azure AI Foundry](https://learn.microsoft.com/azure/ai-foundry/), or other model providers. GitHub Models are free to use for anyone with a GitHub account, up to a [daily rate limit](https://docs.github.com/github-models/prototyping-with-ai-models#rate-limits).
20
+
This repository provides examples of [Microsoft Agent Framework](https://learn.microsoft.com/agent-framework/) using LLMs from [Azure AI Foundry](https://learn.microsoft.com/azure/ai-foundry/) or other model providers.
21
21
22
22
*[Getting started](#getting-started)
23
23
*[GitHub Codespaces](#github-codespaces)
24
24
*[VS Code Dev Containers](#vs-code-dev-containers)
25
25
*[Local environment](#local-environment)
26
26
*[Configuring model providers](#configuring-model-providers)
27
-
*[Using GitHub Models](#using-github-models)
28
27
*[Using Azure AI Foundry models](#using-azure-ai-foundry-models)
*[Running the Python examples](#running-the-python-examples)
@@ -95,35 +94,11 @@ The dev container includes a Redis server, which is used by the `agent_history_r
95
94
96
95
## Configuring model providers
97
96
98
-
These examples can be run with Azure AI Foundry, OpenAI.com, or GitHub Models, depending on the environment variables you set. All the scripts reference the environment variables from a `.env` file, and an example `.env.sample` file is provided. Host-specific instructions are below.
99
-
100
-
## Using GitHub Models
101
-
102
-
If you open this repository in GitHub Codespaces, you can run the scripts forfree using GitHub Models without any additional steps, as your `GITHUB_TOKEN` is already configuredin the Codespaces environment.
103
-
104
-
If you want to run the scripts locally, you need to set up the `GITHUB_TOKEN` environment variable with a GitHub personal access token (PAT). You can create a PAT by following these steps:
105
-
106
-
1. Go to your GitHub account settings.
107
-
2. Click on "Developer settings"in the left sidebar.
108
-
3. Click on "Personal access tokens"in the left sidebar.
109
-
4. Click on "Tokens (classic)" or "Fine-grained tokens" depending on your preference.
110
-
5. Click on "Generate new token".
111
-
6. Give your token a name and selectthe scopes you want to grant. For this project, you don't need any specific scopes.
112
-
7. Click on "Generate token".
113
-
8. Copy the generated token.
114
-
9. Set the `GITHUB_TOKEN` environment variable in your terminal or IDE:
115
-
116
-
```shell
117
-
export GITHUB_TOKEN=your_personal_access_token
118
-
```
119
-
120
-
10. Optionally, you can use a model other than "gpt-4.1-mini" by setting the `GITHUB_MODEL` environment variable. Use a model that supports function calling, such as: `gpt-5`, `gpt-4.1-mini`, `gpt-4o`, `gpt-4o-mini`, `o3-mini`, `AI21-Jamba-1.5-Large`, `AI21-Jamba-1.5-Mini`, `Codestral-2501`, `Cohere-command-r`, `Ministral-3B`, `Mistral-Large-2411`, `Mistral-Nemo`, `Mistral-small`
97
+
These examples can be run with Azure AI Foundry or OpenAI.com, depending on the environment variables you set. All the scripts reference the environment variables from a `.env` file, and an example `.env.sample` file is provided. Host-specific instructions are below.
121
98
122
99
## Using Azure AI Foundry models
123
100
124
-
You can run all examples in this repository using GitHub Models. If you want to run the examples using models from Azure AI Foundry instead, you need to provision the Azure AI resources, which will incur costs.
125
-
126
-
This project includes infrastructure as code (IaC) to provision Azure OpenAI deployments of "gpt-4.1-mini" and "text-embedding-3-large" via Azure AI Foundry. The IaC is defined in the `infra` directory and uses the Azure Developer CLI to provision the resources.
101
+
This project includes infrastructure as code (IaC) to provision Azure OpenAI deployments of "gpt-5-mini" and "text-embedding-3-large" via Azure AI Foundry. The IaC is defined in the `infra` directory and uses the Azure Developer CLI to provision the resources.
127
102
128
103
1. Make sure the [Azure Developer CLI (azd)](https://aka.ms/install-azd) is installed.
0 commit comments