kong
kong copied to clipboard
fix(llm): fix nil error when identity_interface error
Summary
Misconfigured ai-proxy causes unexpected nil error, instead of usual error, due to calling missing function.
It is occurred when bedrock model provider is configured without aws_region configuration.
In this PR, it's fixed by calling proper function.
Checklist
- [ ] The Pull Request has tests
- no test exists for bedrock configuration
- [ ] A changelog file has been created under
changelog/unreleased/kongorskip-changeloglabel added on PR if changelog is unnecessary. README.md - [ ] There is a user-facing docs PR against https://github.com/Kong/docs.konghq.com - PUT DOCS PR HERE
Issue reference
Fix #13666
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.
You have signed the CLA already but the status is still pending? Let us recheck it.
Thank you! Nice catch!