Skip to content

Commit

Permalink
fix(clustering): faster comparisons for unsupported AI providers
Browse files Browse the repository at this point in the history
  • Loading branch information
tysoekong committed Jul 25, 2024
1 parent dfdbac5 commit f704158
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions kong/clustering/compat/checkers.lua
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ local ipairs = ipairs
local type = type


local log_warn_message
local log_warn_message, _AI_PROVIDER_INCOMPATIBLE
do
local ngx_log = ngx.log
local ngx_WARN = ngx.WARN
Expand All @@ -20,7 +20,7 @@ do
ngx_log(ngx_WARN, _log_prefix, msg, log_suffix)
end

_AI_PROVIDERS_ADDED = {
local _AI_PROVIDERS_ADDED = {
[3008000000] = {
"gemini",
"bedrock",
Expand All @@ -32,9 +32,9 @@ do
if v == provider then
return true
end

return false
end

return false
end
end

Expand Down

0 comments on commit f704158

Please sign in to comment.