Skip to content

chore: replace deprecated gpt-4o-mini model in scaffolds and samples#357

Open
radu-mocanu wants to merge 1 commit into
mainfrom
chore/replace-deprecated-gpt-4o-mini
Open

chore: replace deprecated gpt-4o-mini model in scaffolds and samples#357
radu-mocanu wants to merge 1 commit into
mainfrom
chore/replace-deprecated-gpt-4o-mini

Conversation

@radu-mocanu

@radu-mocanu radu-mocanu commented Jun 23, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • update the uipath new agent-framework scaffold template to gpt-4.1-mini-2025-04-14 (was gpt-4o-mini)
  • swap deprecated gpt-4o-mini / gpt-4o-mini-2024-07-18 for gpt-4.1-mini-2025-04-14 in pydantic-ai, google-adk, llamaindex, and openai-agents samples

Why

the gpt-4o-mini family is deprecated, so the scaffold generated by uipath new and the samples should default to a current openai model resolved via uip codedagent list-models.

Copilot AI review requested due to automatic review settings June 23, 2026 12:30

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Updates sample projects to use a non-deprecated default OpenAI model identifier, replacing the previously hard-coded gpt-4o-mini-2024-07-18 with gpt-4.1-mini-2025-04-14 in the UiPath PydanticAI and Google ADK sample entrypoints.

Changes:

  • Replace deprecated gpt-4o-mini-2024-07-18 with gpt-4.1-mini-2025-04-14 across UiPath PydanticAI sample scripts.
  • Update the commented OpenAI model example in the UiPath Google ADK quickstart sample to the new default model.

Reviewed changes

Copilot reviewed 6 out of 6 changed files in this pull request and generated no comments.

Show a summary per file
File Description
packages/uipath-pydantic-ai/samples/structured-io/main.py Updates the sample’s UiPathChatOpenAI default model to gpt-4.1-mini-2025-04-14.
packages/uipath-pydantic-ai/samples/quickstart-agent/main.py Updates the sample’s UiPathChatOpenAI default model to gpt-4.1-mini-2025-04-14.
packages/uipath-pydantic-ai/samples/programmatic-handoff/main.py Updates the sample’s MODEL constant to gpt-4.1-mini-2025-04-14.
packages/uipath-pydantic-ai/samples/multi-agent/main.py Updates the sample’s MODEL constant to gpt-4.1-mini-2025-04-14.
packages/uipath-pydantic-ai/samples/graph-flow/main.py Updates the sample’s MODEL constant to gpt-4.1-mini-2025-04-14.
packages/uipath-google-adk/samples/quickstart-agent/main.py Updates the commented OpenAI model example to gpt-4.1-mini-2025-04-14.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@radu-mocanu radu-mocanu force-pushed the chore/replace-deprecated-gpt-4o-mini branch from 37f0d84 to 4b1cdaf Compare June 23, 2026 12:50
@radu-mocanu radu-mocanu changed the title chore: replace deprecated gpt-4o-mini model in samples chore: replace deprecated gpt-4o-mini model in scaffolds and samples Jun 23, 2026
@sonarqubecloud

Copy link
Copy Markdown

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants