Skip to content

Commit

Permalink
fix(llm): fix nil error when identity_interface error
Browse files Browse the repository at this point in the history
  • Loading branch information
t-yuki authored Sep 14, 2024
1 parent 1c4b859 commit 7ea3968
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion kong/llm/proxy/handler.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 7ea3968

Please sign in to comment.