From 7ea3968c5ded408dcdb02c18801a6fdd10be74d3 Mon Sep 17 00:00:00 2001 From: Yukinari Toyota Date: Sat, 14 Sep 2024 19:41:40 +0900 Subject: [PATCH] fix(llm): fix nil error when identity_interface error --- kong/llm/proxy/handler.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kong/llm/proxy/handler.lua b/kong/llm/proxy/handler.lua index 1ae9e1885ec6..16539ce3915d 100644 --- a/kong/llm/proxy/handler.lua +++ b/kong/llm/proxy/handler.lua @@ -459,7 +459,7 @@ function _M:access(conf) local identity_interface = _KEYBASTION[conf] if identity_interface and identity_interface.error then - llm_state.set_response_transformer_skipped() + llm_state.disable_ai_proxy_response_transform() kong.log.err("error authenticating with cloud-provider, ", identity_interface.error) return bail(500, "LLM request failed before proxying") end