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:
|
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.
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user