llama-stack-mirror/llama_stack/providers/remote/inference/bedrock
skamenan7 88e60c1bf6 fix: Bedrock provider returning None due to inheritance order
Bedrock provider was returning None for both streaming and non-streaming
inference, causing 'NoneType' object has no attribute 'choices' errors.

Primary fix: Reorder inheritance to put mixin classes before protocol class
in BedrockInferenceAdapter so actual implementations are called.

Additional AWS Bedrock API compatibility fixes:
- Fix non-streaming: use res["body"].read() instead of next(res["body"])
- Fix streaming: add proper event structure checks and safe access
- Disable repetition_penalty (not supported by Bedrock Llama models)

Fixes #3621
2025-09-30 16:52:23 -04:00
..
__init__.py feat(pre-commit): enhance pre-commit hooks with additional checks (#2014) 2025-04-30 11:35:49 -07:00
bedrock.py fix: Bedrock provider returning None due to inheritance order 2025-09-30 16:52:23 -04:00
config.py feat(pre-commit): enhance pre-commit hooks with additional checks (#2014) 2025-04-30 11:35:49 -07:00
models.py ci: test safety with starter (#2628) 2025-07-09 16:53:50 +02:00