Skip to content

Commit f33cc40

Browse files
committed
Update default model to gpt-5-mini and address PR feedback
1 parent 6faea96 commit f33cc40

21 files changed

Lines changed: 40 additions & 54 deletions

.env.sample

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,5 +10,5 @@ OLLAMA_MODEL=llama3.1
1010
OPENAI_API_KEY=YOUR-OPENAI-KEY
1111
OPENAI_MODEL=gpt-3.5-turbo
1212
# Configure for GitHub models: (GITHUB_TOKEN already exists inside Codespaces)
13-
GITHUB_MODEL=gpt-4o
13+
GITHUB_MODEL=gpt-5-mini
1414
GITHUB_TOKEN=YOUR-GITHUB-PERSONAL-ACCESS-TOKEN

.github/CONTRIBUTING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Contributing to azure-openai-entity-extraction
1+
# Contributing to python-agentframework-demos
22

33
This project welcomes contributions and suggestions. Most contributions require you to agree to a
44
Contributor License Agreement (CLA) declaring that you have the right to, and actually do, grant us

.github/workflows/azure-dev.yaml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,5 +56,4 @@ jobs:
5656
run: azd provision --no-prompt
5757
env:
5858
AZD_INITIAL_ENVIRONMENT_CONFIG: ${{ secrets.AZD_INITIAL_ENVIRONMENT_CONFIG }}
59-
AZURE_SERVER_APP_SECRET: ${{ secrets.AZURE_SERVER_APP_SECRET }}
60-
AZURE_CLIENT_APP_SECRET: ${{ secrets.AZURE_CLIENT_APP_SECRET }}
59+

CHANGELOG.md

Lines changed: 0 additions & 13 deletions
This file was deleted.

CONTRIBUTING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Contributing to [project-title]
1+
# Contributing to python-agentframework-demos
22

33
This project welcomes contributions and suggestions. Most contributions require you to agree to a
44
Contributor License Agreement (CLA) declaring that you have the right to, and actually do, grant us

examples/basic.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
client = OpenAIChatClient(
2525
base_url="https://models.github.ai/inference",
2626
api_key=os.environ["GITHUB_TOKEN"],
27-
model_id=os.getenv("GITHUB_MODEL", "openai/gpt-4o"),
27+
model_id=os.getenv("GITHUB_MODEL", "openai/gpt-5-mini"),
2828
)
2929
elif API_HOST == "ollama":
3030
client = OpenAIChatClient(
@@ -33,7 +33,7 @@
3333
model_id=os.environ.get("OLLAMA_MODEL", "llama3.1:latest"),
3434
)
3535
else:
36-
client = OpenAIChatClient(api_key=os.environ["OPENAI_API_KEY"], model_id=os.environ.get("OPENAI_MODEL", "gpt-4o"))
36+
client = OpenAIChatClient(api_key=os.environ["OPENAI_API_KEY"], model_id=os.environ.get("OPENAI_MODEL", "gpt-5-mini"))
3737

3838
agent = ChatAgent(chat_client=client, instructions="You're an informational agent. Answer questions cheerfully.")
3939

examples/hitl.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@
4747
client = OpenAIChatClient(
4848
base_url="https://models.github.ai/inference",
4949
api_key=os.environ["GITHUB_TOKEN"],
50-
model_id=os.getenv("GITHUB_MODEL", "openai/gpt-4o"),
50+
model_id=os.getenv("GITHUB_MODEL", "openai/gpt-5-mini"),
5151
)
5252
elif API_HOST == "ollama":
5353
client = OpenAIChatClient(
@@ -56,7 +56,7 @@
5656
model_id=os.environ.get("OLLAMA_MODEL", "llama3.1:latest"),
5757
)
5858
else:
59-
client = OpenAIChatClient(api_key=os.environ["OPENAI_API_KEY"], model_id=os.environ.get("OPENAI_MODEL", "gpt-4o"))
59+
client = OpenAIChatClient(api_key=os.environ["OPENAI_API_KEY"], model_id=os.environ.get("OPENAI_MODEL", "gpt-5-mini"))
6060

6161
"""
6262
Sample: Tool-enabled agents with human feedback

examples/magenticone.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
client = OpenAIChatClient(
4040
base_url="https://models.github.ai/inference",
4141
api_key=os.environ["GITHUB_TOKEN"],
42-
model_id=os.getenv("GITHUB_MODEL", "openai/gpt-4o"),
42+
model_id=os.getenv("GITHUB_MODEL", "openai/gpt-5-mini"),
4343
)
4444
elif API_HOST == "ollama":
4545
client = OpenAIChatClient(
@@ -48,7 +48,7 @@
4848
model_id=os.environ.get("OLLAMA_MODEL", "llama3.1:latest"),
4949
)
5050
else:
51-
client = OpenAIChatClient(api_key=os.environ["OPENAI_API_KEY"], model_id=os.environ.get("OPENAI_MODEL", "gpt-4o"))
51+
client = OpenAIChatClient(api_key=os.environ["OPENAI_API_KEY"], model_id=os.environ.get("OPENAI_MODEL", "gpt-5-mini"))
5252

5353
# Initialize rich console
5454
console = Console()

examples/spanish/basic.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
client = OpenAIChatClient(
2525
base_url="https://models.github.ai/inference",
2626
api_key=os.environ["GITHUB_TOKEN"],
27-
model_id=os.getenv("GITHUB_MODEL", "openai/gpt-4o"),
27+
model_id=os.getenv("GITHUB_MODEL", "openai/gpt-5-mini"),
2828
)
2929
elif API_HOST == "ollama":
3030
client = OpenAIChatClient(
@@ -33,7 +33,7 @@
3333
model_id=os.environ.get("OLLAMA_MODEL", "llama3.1:latest"),
3434
)
3535
else:
36-
client = OpenAIChatClient(api_key=os.environ["OPENAI_API_KEY"], model_id=os.environ.get("OPENAI_MODEL", "gpt-4o"))
36+
client = OpenAIChatClient(api_key=os.environ["OPENAI_API_KEY"], model_id=os.environ.get("OPENAI_MODEL", "gpt-5-mini"))
3737

3838

3939
agent = ChatAgent(chat_client=client, instructions="Eres un agente informativo. Responde a las preguntas con alegría.")

examples/spanish/hitl.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@
4747
client = OpenAIChatClient(
4848
base_url="https://models.github.ai/inference",
4949
api_key=os.environ["GITHUB_TOKEN"],
50-
model_id=os.getenv("GITHUB_MODEL", "openai/gpt-4o"),
50+
model_id=os.getenv("GITHUB_MODEL", "openai/gpt-5-mini"),
5151
)
5252
elif API_HOST == "ollama":
5353
client = OpenAIChatClient(
@@ -56,7 +56,7 @@
5656
model_id=os.environ.get("OLLAMA_MODEL", "llama3.1:latest"),
5757
)
5858
else:
59-
client = OpenAIChatClient(api_key=os.environ["OPENAI_API_KEY"], model_id=os.environ.get("OPENAI_MODEL", "gpt-4o"))
59+
client = OpenAIChatClient(api_key=os.environ["OPENAI_API_KEY"], model_id=os.environ.get("OPENAI_MODEL", "gpt-5-mini"))
6060

6161
"""
6262
Ejemplo: agentes con herramientas y retroalimentación humana

0 commit comments

Comments
 (0)