Skip to content

Commit

Permalink
fix typo in test script in AgentQnA (opea-project#787)
Browse files Browse the repository at this point in the history
Signed-off-by: minmin-intel <[email protected]>
  • Loading branch information
minmin-intel authored Sep 11, 2024
1 parent 262a6f6 commit 10fe3c6
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
16 changes: 8 additions & 8 deletions AgentQnA/tests/4_launch_and_validate_agent_tgi.sh
Original file line number Diff line number Diff line change
Expand Up @@ -43,14 +43,14 @@ function validate() {

function validate_agent_service() {
echo "----------------Test agent ----------------"
# local CONTENT=$(http_proxy="" curl http://${ip_address}:9095/v1/chat/completions -X POST -H "Content-Type: application/json" -d '{
# "query": "Tell me about Michael Jackson song thriller"
# }')
# local EXIT_CODE=$(validate "$CONTENT" "Thriller" "react-agent-endpoint")
# docker logs docgrader-agent-endpoint
# if [ "$EXIT_CODE" == "1" ]; then
# exit 1
# fi
local CONTENT=$(http_proxy="" curl http://${ip_address}:9095/v1/chat/completions -X POST -H "Content-Type: application/json" -d '{
"query": "Tell me about Michael Jackson song thriller"
}')
local EXIT_CODE=$(validate "$CONTENT" "Thriller" "react-agent-endpoint")
docker logs docgrader-agent-endpoint
if [ "$EXIT_CODE" == "1" ]; then
exit 1
fi

local CONTENT=$(http_proxy="" curl http://${ip_address}:9090/v1/chat/completions -X POST -H "Content-Type: application/json" -d '{
"query": "Tell me about Michael Jackson song thriller"
Expand Down
2 changes: 1 addition & 1 deletion AgentQnA/tests/test_compose_on_gaudi.sh
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ echo "=================== #4 Agent test passed ===================="

echo "=================== #5 Stop agent and API server===================="
stop_crag
stop_docker
stop_agent_docker
stop_retrieval_tool
echo "=================== #5 Agent and API server stopped===================="

Expand Down

0 comments on commit 10fe3c6

Please sign in to comment.