Fix an issue in AWSBedrockLLMService.run_inference—exceptions should propagate, just like with other LLM services

This commit is contained in:
Paul Kompfner
2025-09-12 11:09:32 -04:00
parent 9f82c6b4a4
commit 786387722a

View File

@@ -811,7 +811,6 @@ class AWSBedrockLLMService(LLMService):
Returns: Returns:
The LLM's response as a string, or None if no response is generated. The LLM's response as a string, or None if no response is generated.
""" """
try:
messages = [] messages = []
system = [] system = []
if isinstance(context, LLMContext): if isinstance(context, LLMContext):
@@ -863,10 +862,6 @@ class AWSBedrockLLMService(LLMService):
return None return None
except Exception as e:
logger.error(f"Bedrock summary generation failed: {e}", exc_info=True)
return None
async def _create_converse_stream(self, client, request_params): async def _create_converse_stream(self, client, request_params):
"""Create converse stream with optional timeout and retry. """Create converse stream with optional timeout and retry.