shreemaan-abhishek commented on code in PR #12930:
URL: https://github.com/apache/apisix/pull/12930#discussion_r2715506690
##########
t/plugin/ai-proxy-multi3.t:
##########
@@ -933,51 +928,84 @@ POST /ai
return original_parse_domain(host)
end
-- Create a route with health check that uses the domain
- local code, body = t('/apisix/admin/routes/1',
- ngx.HTTP_PUT,
- [[{
- "uri": "/ai",
- "plugins": {
- "ai-proxy-multi": {
- "instances": [
- {
- "name": "openai-test",
- "provider": "openai",
- "weight": 1,
- "priority": 1,
- "auth": {
- "header": {
- "Authorization": "Bearer token"
- }
- },
- "options": {
- "model": "gpt-4"
- },
- "override": {
- "endpoint":
"http://test.example.com:16724"
- },
- "checks": {
- "active": {
- "timeout": 5,
- "http_path": "/status/test",
- "host": "test.example.com",
- "healthy": {
- "interval": 1,
- "successes": 1
- },
- "unhealthy": {
- "interval": 1,
- "http_failures": 1
- }
+ local core = require("apisix.core")
+ local route_config = {
Review Comment:
I had to convert json config to lua table to get rid of this error in CI:
<img width="2624" height="594" alt="Image"
src="https://github.com/user-attachments/assets/f95c694c-af00-43a4-a9f4-ce9c9921ff08"
/>
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]