You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Backport 191f10e from #15124 to 3.17.
## Description
Closes#14575.
<!-- Provide an overview of the change and motivation for the change -->
Adds safely accessing output response messages in the bedrock
integration. This happens when cohere rerank models are invoked, since
cohere rerank responses lack a response["text"] field and will return an
empty list.
## Testing
Added a test invoking cohere rerank models.
<!-- Describe your testing strategy or note what tests are included -->
## Risks
<!-- Note any risks associated with this change, or "None" if no risks
-->
## Additional Notes
<!-- Any other information that would be helpful for reviewers -->
Signed-off-by: Yun Kim <[email protected]>
Co-authored-by: Yun Kim <[email protected]>
LLM Observability: Resolves an issue in the bedrock integration where invoking cohere rerank models would result in missing spans due to output formatting index errors.
0 commit comments