Fix bug in AWS Bedrock conversation summarization. It was using an out-of-date pattern (the _client property no longer exists)
This commit is contained in:
@@ -840,8 +840,11 @@ class AWSBedrockLLMService(LLMService):
|
|||||||
|
|
||||||
request_params["system"] = [{"text": summary_prompt}]
|
request_params["system"] = [{"text": summary_prompt}]
|
||||||
|
|
||||||
|
async with self._aws_session.client(
|
||||||
|
service_name="bedrock-runtime", **self._aws_params
|
||||||
|
) as client:
|
||||||
# Call Bedrock without streaming
|
# Call Bedrock without streaming
|
||||||
response = self._client.converse(**request_params)
|
response = await client.converse(**request_params)
|
||||||
|
|
||||||
# Extract the response text
|
# Extract the response text
|
||||||
if (
|
if (
|
||||||
|
|||||||
Reference in New Issue
Block a user