Skip to content

Commit 40cf8d7

Browse files
fix imports
1 parent 104eea5 commit 40cf8d7

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

apisix/plugins/ai-drivers/deepseek.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
-- limitations under the License.
1616
--
1717

18-
return require("apisix.plugins.ai-proxy.drivers.openai-compatible").new(
18+
return require("apisix.plugins.ai-drivers.openai-compatible").new(
1919
{
2020
host = "api.deepseek.com",
2121
path = "/chat/completions",

apisix/plugins/ai-drivers/openai.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
-- limitations under the License.
1616
--
1717

18-
return require("apisix.plugins.ai-proxy.drivers.openai-compatible").new(
18+
return require("apisix.plugins.ai-drivers.openai-compatible").new(
1919
{
2020
host = "api.openai.com",
2121
path = "/v1/chat/completions",

apisix/plugins/ai-proxy-multi.lua

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ end
6161

6262
function _M.check_schema(conf)
6363
for _, provider in ipairs(conf.providers) do
64-
local ai_driver = pcall(require, "apisix.plugins.ai-proxy.drivers." .. provider.name)
64+
local ai_driver = pcall(require, "apisix.plugins.ai-drivers." .. provider.name)
6565
if not ai_driver then
6666
return false, "provider: " .. provider.name .. " is not supported."
6767
end
@@ -208,7 +208,7 @@ ai_proxy.proxy_request_to_llm = function (conf, request_table, ctx)
208208
model_options = provider_conf.options,
209209
}
210210

211-
local ai_driver = require("apisix.plugins.ai-proxy.drivers." .. provider)
211+
local ai_driver = require("apisix.plugins.ai-drivers." .. provider)
212212
local res, err, httpc = ai_driver:request(conf, request_table, extra_opts)
213213
if not res then
214214
if (ctx.balancer_try_count or 0) < 1 then

apisix/plugins/ai-proxy.lua

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ local _M = {
3434

3535

3636
function _M.check_schema(conf)
37-
local ai_driver = pcall(require, "apisix.plugins.ai-proxy.drivers." .. conf.model.provider)
37+
local ai_driver = pcall(require, "apisix.plugins.ai-drivers." .. conf.model.provider)
3838
if not ai_driver then
3939
return false, "provider: " .. conf.model.provider .. " is not supported."
4040
end
@@ -60,7 +60,7 @@ end
6060

6161

6262
function _M.proxy_request_to_llm(conf, request_table, ctx)
63-
local ai_driver = require("apisix.plugins.ai-proxy.drivers." .. conf.model.provider)
63+
local ai_driver = require("apisix.plugins.ai-drivers." .. conf.model.provider)
6464
local extra_opts = {
6565
endpoint = core.table.try_read_attr(conf, "override", "endpoint"),
6666
query_params = conf.auth.query or {},

0 commit comments

Comments
 (0)