Skip to content

Commit 412d31d

Browse files
authored
test(ai-aliyun-content-moderation): remove unused mock LLM location (#13354)
1 parent 4d4e0d4 commit 412d31d

1 file changed

Lines changed: 0 additions & 14 deletions

File tree

t/plugin/ai-aliyun-content-moderation.t

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -40,20 +40,6 @@ add_block_preprocessor(sub {
4040
4141
default_type 'application/json';
4242
43-
location /v1/chat/completions {
44-
content_by_lua_block {
45-
local fixture_loader = require("lib.fixture_loader")
46-
local content, err = fixture_loader.load("aliyun/chat-with-harmful.json")
47-
if not content then
48-
ngx.status = 500
49-
ngx.say(err)
50-
return
51-
end
52-
ngx.status = 200
53-
ngx.print(content)
54-
}
55-
}
56-
5743
location / {
5844
content_by_lua_block {
5945
local core = require("apisix.core")

0 commit comments

Comments
 (0)