ai-proxy nil error with bedrock misconfiguration #13666
Labels
bug
pending author feedback
Waiting for the issue author to get back to a maintainer with findings, more details, etc...
plugins/ai-proxy
stale
Is there an existing issue for this?
Kong version (
$ kong version
)Kong 3.8.0.0
Current Behavior
nil error happen when aws_region is missing.
[kong] init.lua:427 [ai-proxy] /usr/local/share/lua/5.1/kong/llm/proxy/handler.lua:471: attempt to call field 'set_response_transformer_skipped' (a nil value)
Expected Behavior
Error detail on AWS auth config such as
error authenticating with cloud-provider, AWS region not specified anywhere
Steps To Reproduce
in docker environment
with config of a route like plugins:
- name: ai-proxy
config:
route_type: llm/v1/chat
auth:
aws_access_key_id: MYKEY
aws_secret_access_key: MYSECRET
model:
provider: bedrock
name: anthropic.claude-3-haiku-20240307-v1:0
#options: # NO AWS_REGION CONFIG
# bedrock: {"aws_region": "ap-northeast-1"}
call the route
Anything else?
I think
kong/kong/llm/proxy/handler.lua
Line 461 in c983384
disable_ai_proxy_response_transform
The text was updated successfully, but these errors were encountered: