diff --git a/test/e2e/conformance/tests/go-wasm-ai-proxy.go b/test/e2e/conformance/tests/go-wasm-ai-proxy.go index 6383f75f92..5d14f0208d 100644 --- a/test/e2e/conformance/tests/go-wasm-ai-proxy.go +++ b/test/e2e/conformance/tests/go-wasm-ai-proxy.go @@ -293,8 +293,9 @@ data: [DONE] }, Response: http.AssertionResponse{ ExpectedResponse: http.Response{ - StatusCode: 200, - ContentType: http.ContentTypeApplicationJson, + StatusCode: 200, + ContentType: http.ContentTypeApplicationJson, + // Since the "created" field is generated by the ai-proxy plugin based on the current timestamp, it is ignored during comparison JsonBodyIgnoreFields: []string{"created"}, Body: []byte(`{"id":"chatcmpl-llm-mock","choices":[{"index":0,"message":{"role":"assistant","content":"你好,你是谁?"},"finish_reason":"stop"}],"created":1738218357,"model":"qwen-turbo","object":"chat.completion","usage":{"prompt_tokens":9,"completion_tokens":1,"total_tokens":10}}`), }, diff --git a/test/e2e/conformance/tests/go-wasm-ai-proxy.yaml b/test/e2e/conformance/tests/go-wasm-ai-proxy.yaml index 5cdf1ac0c2..aa3d10561e 100644 --- a/test/e2e/conformance/tests/go-wasm-ai-proxy.yaml +++ b/test/e2e/conformance/tests/go-wasm-ai-proxy.yaml @@ -174,4 +174,4 @@ spec: type: qwen ingress: - higress-conformance-ai-backend/wasmplugin-ai-proxy-qwen - url: file:///opt/plugins/wasm-go/extensions/ai-proxy/plugin.wasm + url: oci://higress-registry.cn-hangzhou.cr.aliyuncs.com/plugins/ai-proxy:1.0.0 \ No newline at end of file