Skip to content

Commit dbad7d7

Browse files
committed
add return statements
1 parent 7a92636 commit dbad7d7

2 files changed

Lines changed: 6 additions & 0 deletions

File tree

integrations/amazon_bedrock/src/haystack_integrations/components/generators/amazon_bedrock/chat/chat_generator.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -562,6 +562,8 @@ def run(
562562
)
563563
time.sleep(wait)
564564

565+
return {"replies": []}
566+
565567
@component.output_types(replies=list[ChatMessage])
566568
async def run_async(
567569
self,
@@ -639,3 +641,5 @@ async def run_async(
639641
f"Bedrock throttle [{code}] on attempt {attempt}/{MAX_RETRIES} — retrying in {wait:.1f}s",
640642
)
641643
await asyncio.sleep(wait)
644+
645+
return {"replies": []}

integrations/amazon_bedrock/src/haystack_integrations/components/generators/amazon_bedrock/generator.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -268,6 +268,8 @@ def run(
268268
)
269269
time.sleep(wait)
270270

271+
return {"replies": [], "meta": {}}
272+
271273
@classmethod
272274
def get_model_adapter(cls, model: str, model_family: str | None = None) -> type[BedrockModelAdapter]:
273275
"""

0 commit comments

Comments
 (0)