Skip to content

Commit

Permalink
priority and include in configs and add tests
Browse files Browse the repository at this point in the history
  • Loading branch information
shreemaan-abhishek committed Feb 21, 2025
1 parent 23af492 commit d34e25b
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 2 deletions.
1 change: 1 addition & 0 deletions apisix/cli/config.lua
Original file line number Diff line number Diff line change
Expand Up @@ -223,6 +223,7 @@ local _M = {
"workflow",
"api-breaker",
"ai-proxy",
"ai-proxy-multi",
"limit-conn",
"limit-count",
"limit-req",
Expand Down
4 changes: 2 additions & 2 deletions apisix/plugins/ai-proxy-multi.lua
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,10 @@ local lrucache_server_picker = core.lrucache.new({
ttl = 300, count = 256
})

local plugin_name = "ai-proxy"
local plugin_name = "ai-proxy-multi"
local _M = {
version = 0.5,
priority = 999,
priority = 998,
name = plugin_name,
schema = schema.ai_proxy_multi_schema,
}
Expand Down
1 change: 1 addition & 0 deletions conf/config.yaml.example
Original file line number Diff line number Diff line change
Expand Up @@ -491,6 +491,7 @@ plugins: # plugin list (sorted by priority)
- limit-req # priority: 1001
#- node-status # priority: 1000
- ai-proxy # priority: 999
- ai-proxy-multi # priority: 998
#- brotli # priority: 996
- gzip # priority: 995
- server-info # priority: 990
Expand Down
1 change: 1 addition & 0 deletions t/admin/plugins.t
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,7 @@ limit-conn
limit-count
limit-req
ai-proxy
ai-proxy-multi
gzip
server-info
traffic-split
Expand Down

0 comments on commit d34e25b

Please sign in to comment.