Fix an issue in AWSBedrockLLMService.run_inference—exceptions should propagate, just like with other LLM services
This commit is contained in:
@@ -811,7 +811,6 @@ class AWSBedrockLLMService(LLMService):
|
||||
Returns:
|
||||
The LLM's response as a string, or None if no response is generated.
|
||||
"""
|
||||
try:
|
||||
messages = []
|
||||
system = []
|
||||
if isinstance(context, LLMContext):
|
||||
@@ -863,10 +862,6 @@ class AWSBedrockLLMService(LLMService):
|
||||
|
||||
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):
|
||||
"""Create converse stream with optional timeout and retry.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user