File tree Expand file tree Collapse file tree
packages/uipath-openai-agents
src/uipath_openai_agents/chat
testcases/triage-agent/src Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -32,9 +32,9 @@ class Output(BaseModel):
3232
3333
3434# Define the assistant agent
35+ # Model defaults to gpt-4.1 which automatically maps to gpt-4o-2024-11-20
3536assistant_agent = Agent (
3637 name = "assistant_agent" ,
37- model = "gpt-4o-2024-11-20" , # Use specific version supported by UiPath LLM Gateway
3838 instructions = """You are a helpful AI assistant that provides clear, concise answers.
3939
4040Your capabilities:
Original file line number Diff line number Diff line change @@ -54,9 +54,14 @@ class OpenAIModels:
5454
5555 # Model aliases - maps generic names to specific versions
5656 MODEL_ALIASES = {
57- "gpt-4.1" : gpt_4_1_2025_04_14 ,
58- "gpt-4.1-mini" : gpt_4_1_mini_2025_04_14 ,
59- "gpt-4.1-nano" : gpt_4_1_nano_2025_04_14 ,
57+ # Map gpt-4.1 variants to gpt-4o (most capable available model)
58+ "gpt-4.1" : gpt_4o_2024_11_20 ,
59+ "gpt-4.1-mini" : gpt_4o_mini_2024_07_18 ,
60+ "gpt-4.1-nano" : gpt_4o_mini_2024_07_18 ,
61+ "gpt-4.1-2025-04-14" : gpt_4o_2024_11_20 , # Map invalid model to valid one
62+ "gpt-4.1-mini-2025-04-14" : gpt_4o_mini_2024_07_18 ,
63+ "gpt-4.1-nano-2025-04-14" : gpt_4o_mini_2024_07_18 ,
64+ # Generic model mappings
6065 "gpt-4o" : gpt_4o_2024_11_20 ,
6166 "gpt-4o-mini" : gpt_4o_mini_2024_07_18 ,
6267 "gpt-5" : gpt_5_2025_08_07 ,
Original file line number Diff line number Diff line change 22Integration testcase for the triage/routing pattern.
33The triage agent receives a message and hands off to the appropriate
44agent based on the language of the request.
5+
56"""
67
78import dotenv
1011dotenv .load_dotenv ()
1112
1213# Define specialized agents for different languages
14+ # No need to specify model - defaults to gpt-4.1 which maps to gpt-4o-2024-11-20
1315french_agent = Agent (
1416 name = "french_agent" ,
1517 instructions = "You only speak French" ,
You can’t perform that action at this time.
0 commit comments