llama-index-llms-bedrock-converse 0.11.0__tar.gz → 0.12.0__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: llama-index-llms-bedrock-converse
3
- Version: 0.11.0
3
+ Version: 0.12.0
4
4
  Summary: llama-index llms bedrock converse integration
5
5
  Author-email: Your Name <you@example.com>
6
6
  License-Expression: MIT
@@ -189,8 +189,8 @@ def is_reasoning(model_name: str) -> bool:
189
189
 
190
190
  def get_model_name(model_name: str) -> str:
191
191
  """Extract base model name from region-prefixed model identifier."""
192
- # Check for region prefixes (us, eu, apac, global)
193
- REGION_PREFIXES = ["us.", "eu.", "apac.", "global."]
192
+ # Check for region prefixes (us, eu, apac, jp, global)
193
+ REGION_PREFIXES = ["us.", "eu.", "apac.", "jp.", "global."]
194
194
 
195
195
  # If no region prefix, return the original model name
196
196
  if not any(prefix in model_name for prefix in REGION_PREFIXES):
@@ -29,7 +29,7 @@ dev = [
29
29
 
30
30
  [project]
31
31
  name = "llama-index-llms-bedrock-converse"
32
- version = "0.11.0"
32
+ version = "0.12.0"
33
33
  description = "llama-index llms bedrock converse integration"
34
34
  authors = [{name = "Your Name", email = "you@example.com"}]
35
35
  requires-python = ">=3.9,<4.0"
@@ -707,7 +707,6 @@ class BedrockConverse(FunctionCallingLLM):
707
707
  stream=False,
708
708
  guardrail_identifier=self.guardrail_identifier,
709
709
  guardrail_version=self.guardrail_version,
710
- guardrail_stream_processing_mode=self.guardrail_stream_processing_mode,
711
710
  trace=self.trace,
712
711
  boto_client_kwargs=self._boto_client_kwargs,
713
712
  **all_kwargs,
@@ -759,6 +758,7 @@ class BedrockConverse(FunctionCallingLLM):
759
758
  stream=True,
760
759
  guardrail_identifier=self.guardrail_identifier,
761
760
  guardrail_version=self.guardrail_version,
761
+ guardrail_stream_processing_mode=self.guardrail_stream_processing_mode,
762
762
  trace=self.trace,
763
763
  boto_client_kwargs=self._boto_client_kwargs,
764
764
  **all_kwargs,