Skip to content

Commit 38525c1

Browse files
committed
Merge branch 'feature/eu-fix' into 'develop'
EU region- Remove ChatCompanionModelId parameter and implement region-aware model swapping See merge request genaiic-reusable-assets/engagement-artifacts/genaiic-idp-accelerator!422
2 parents 1adafe8 + 5ff5ee2 commit 38525c1

File tree

15 files changed

+55
-65
lines changed

15 files changed

+55
-65
lines changed

config_library/pattern-1/lending-package-sample/config.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,6 @@ discovery:
210210
agents:
211211
error_analyzer:
212212
model_id: us.anthropic.claude-sonnet-4-20250514-v1:0
213-
214213
system_prompt: |-
215214
You are an intelligent error analysis agent for the GenAI IDP system with access to specialized diagnostic tools.
216215
@@ -299,6 +298,9 @@ agents:
299298
parameters:
300299
max_log_events: 5
301300
time_range_hours_default: 24
301+
302+
chat_companion:
303+
model_id: us.anthropic.claude-sonnet-4-20250514-v1:0
302304
pricing:
303305
- name: bda/documents-custom
304306
units:

config_library/pattern-2/bank-statement-sample/config.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -788,6 +788,9 @@ agents:
788788
parameters:
789789
max_log_events: 5
790790
time_range_hours_default: 24
791+
792+
chat_companion:
793+
model_id: us.anthropic.claude-sonnet-4-20250514-v1:0
791794
pricing:
792795
- name: textract/detect_document_text
793796
units:

config_library/pattern-2/criteria-validation/config.yaml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -292,7 +292,6 @@ discovery:
292292
agents:
293293
error_analyzer:
294294
model_id: us.anthropic.claude-sonnet-4-20250514-v1:0
295-
296295
system_prompt: |-
297296
You are an intelligent error analysis agent for the GenAI IDP system with access to specialized diagnostic tools.
298297
@@ -381,7 +380,9 @@ agents:
381380
parameters:
382381
max_log_events: 5
383382
time_range_hours_default: 24
384-
383+
384+
chat_companion:
385+
model_id: us.anthropic.claude-sonnet-4-20250514-v1:0
385386
# Pricing configuration for cost tracking
386387
pricing:
387388
- name: textract/detect_document_text

config_library/pattern-2/lending-package-sample/config.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1723,7 +1723,6 @@ discovery:
17231723
agents:
17241724
error_analyzer:
17251725
model_id: us.anthropic.claude-sonnet-4-20250514-v1:0
1726-
17271726
system_prompt: |-
17281727
You are an intelligent error analysis agent for the GenAI IDP system with access to specialized diagnostic tools.
17291728
@@ -1812,6 +1811,9 @@ agents:
18121811
parameters:
18131812
max_log_events: 5
18141813
time_range_hours_default: 24
1814+
1815+
chat_companion:
1816+
model_id: us.anthropic.claude-sonnet-4-20250514-v1:0
18151817
pricing:
18161818
- name: textract/detect_document_text
18171819
units:

config_library/pattern-2/rvl-cdip-package-sample-with-few-shot-examples/config.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1345,7 +1345,6 @@ discovery:
13451345
agents:
13461346
error_analyzer:
13471347
model_id: us.anthropic.claude-sonnet-4-20250514-v1:0
1348-
13491348
system_prompt: |-
13501349
You are an intelligent error analysis agent for the GenAI IDP system with access to specialized diagnostic tools.
13511350
@@ -1434,6 +1433,9 @@ agents:
14341433
parameters:
14351434
max_log_events: 5
14361435
time_range_hours_default: 24
1436+
1437+
chat_companion:
1438+
model_id: us.anthropic.claude-sonnet-4-20250514-v1:0
14371439
pricing:
14381440
- name: textract/detect_document_text
14391441
units:

config_library/pattern-2/rvl-cdip-package-sample/config.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1365,7 +1365,6 @@ discovery:
13651365
agents:
13661366
error_analyzer:
13671367
model_id: us.anthropic.claude-sonnet-4-20250514-v1:0
1368-
13691368
system_prompt: |-
13701369
You are an intelligent error analysis agent for the GenAI IDP system with access to specialized diagnostic tools.
13711370
@@ -1454,6 +1453,9 @@ agents:
14541453
parameters:
14551454
max_log_events: 5
14561455
time_range_hours_default: 24
1456+
1457+
chat_companion:
1458+
model_id: us.anthropic.claude-sonnet-4-20250514-v1:0
14571459
pricing:
14581460
- name: textract/detect_document_text
14591461
units:

config_library/pattern-3/rvl-cdip-package-sample/config.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1224,7 +1224,6 @@ discovery:
12241224
agents:
12251225
error_analyzer:
12261226
model_id: us.anthropic.claude-sonnet-4-20250514-v1:0
1227-
12281227
system_prompt: |-
12291228
You are an intelligent error analysis agent for the GenAI IDP system with access to specialized diagnostic tools.
12301229
@@ -1313,6 +1312,9 @@ agents:
13131312
parameters:
13141313
max_log_events: 5
13151314
time_range_hours_default: 24
1315+
1316+
chat_companion:
1317+
model_id: us.anthropic.claude-sonnet-4-20250514-v1:0
13161318
pricing:
13171319
- name: textract/detect_document_text
13181320
units:

docs/eu-region-model-support.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ The following table shows all US to EU model mappings currently configured in th
1919
| `us.anthropic.claude-3-5-sonnet-20241022-v2:0` | `eu.anthropic.claude-3-5-sonnet-20241022-v2:0` | Direct mapping |
2020
| `us.anthropic.claude-3-7-sonnet-20250219-v1:0` | `eu.anthropic.claude-3-7-sonnet-20250219-v1:0` | Direct mapping |
2121
| `us.anthropic.claude-sonnet-4-20250514-v1:0` | `eu.anthropic.claude-sonnet-4-20250514-v1:0` | Direct mapping |
22+
| `us.anthropic.claude-sonnet-4-20250514-v1:0:1m` | `eu.anthropic.claude-sonnet-4-5-20250929-v1:0` | **Fallback mapping** |
2223
| `us.anthropic.claude-sonnet-4-5-20250929-v1:0` | `eu.anthropic.claude-sonnet-4-5-20250929-v1:0` | Direct mapping |
2324
| `us.anthropic.claude-sonnet-4-5-20250929-v1:0:1m` | `eu.anthropic.claude-sonnet-4-5-20250929-v1:0:1m` | Direct mapping |
2425
| `us.anthropic.claude-opus-4-20250514-v1:0` | `eu.anthropic.claude-sonnet-4-5-20250929-v1:0` | **Fallback mapping** |

lib/idp_common_pkg/idp_common/agents/orchestrator/config.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,6 @@ def get_chat_companion_model_id() -> str:
6666
logger.warning(f"Failed to load model ID from configuration: {e}")
6767

6868
# Final fallback to default
69-
default_model_id = "us.anthropic.claude-sonnet-4-20250514-v1:0:1m"
69+
default_model_id = "us.anthropic.claude-sonnet-4-20250514-v1:0"
7070
logger.info(f"Using default chat companion model ID: {default_model_id}")
7171
return default_model_id

lib/idp_common_pkg/idp_common/config/models.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -523,7 +523,7 @@ class ChatCompanionConfig(BaseModel):
523523
"""Chat companion agent configuration"""
524524

525525
model_id: str = Field(
526-
default="us.anthropic.claude-sonnet-4-20250514-v1:0:1m",
526+
default="us.anthropic.claude-sonnet-4-20250514-v1:0",
527527
description="Bedrock model ID for chat companion",
528528
)
529529

0 commit comments

Comments
 (0)