From 76674d17cf59c0d1fd6e0a97070faa5b6a8a468f Mon Sep 17 00:00:00 2001 From: Dolpher Du Date: Wed, 15 Jan 2025 08:44:52 +0000 Subject: [PATCH] Fix input parameter error Signed-off-by: Dolpher Du --- helm-charts/common/agent/templates/tests/test-pod.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/helm-charts/common/agent/templates/tests/test-pod.yaml b/helm-charts/common/agent/templates/tests/test-pod.yaml index 61515c7a3..d6ce3cca3 100644 --- a/helm-charts/common/agent/templates/tests/test-pod.yaml +++ b/helm-charts/common/agent/templates/tests/test-pod.yaml @@ -22,7 +22,7 @@ spec: curl http://{{ include "agent.fullname" . }}:{{ .Values.service.port }}/v1/chat/completions -sS --fail-with-body \ -X POST \ -H 'Content-Type: application/json' \ - -d '{"query":"What is OPEA?"}' && break; + -d '{"messages":"What is OPEA?", "stream":"true"}' && break; curlcode=$? if [[ $curlcode -eq 7 ]]; then sleep 10; else echo "curl failed with code $curlcode"; exit 1; fi; done;