Skip to content

Commit

Permalink
follow redirect
Browse files Browse the repository at this point in the history
  • Loading branch information
samos123 committed Sep 30, 2024
1 parent 9c8e64b commit bcc4c74
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/quickstart.sh
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ curl -s -X GET "http://localhost:8000/openai/v1/models" | jq '. | length == 4'

function test_completion() {
local url="$1"
http_code=$(curl -sw '%{http_code}' ${url} \
http_code=$(curl -L -sw '%{http_code}' ${url} \
-H "Content-Type: application/json" \
-d '{"model": "gemma2-2b-cpu", "prompt": "Who was the first president of the United States?", "max_tokens": 40}')
if [ "$http_code" -ne 200 ]; then
Expand Down

0 comments on commit bcc4c74

Please sign in to comment.