test: test streaming API

This commit is contained in:
Jerry Tian 2025-04-10 00:48:16 -04:00
parent 4d3a325dee
commit a276027bcf

View File

@ -13,21 +13,53 @@
# ],
# "stream": false
# }'
#
# echo
# curl -v --location --request POST 'https://animator-gg-api.ca2324.servep2p.com:8443/api/fal/proxy' \
# --header 'Content-Type: application/json' \
# --header 'x-fal-target-url: https://api.tu-zi.com/v1/chat/completions' \
# --data-raw '{
# "model": "gpt-4-gizmo-g-2fkFE8rbu",
# "messages": [
# {
# "role": "user",
# "content": "你是谁"
# }
# ],
# "stream": false
# }'
# echo
# curl --location --request POST 'https://api.tu-zi.com/v1/chat/completions' \
# --header 'Authorization: Bearer sk-...' \
# --header 'User-Agent: Apifox/1.0.0 (https://apifox.com)' \
# --header 'Content-Type: application/json' \
# --header 'Accept: */*' \
# --header 'Host: api.tu-zi.com' \
# --header 'Connection: keep-alive' \
# --data-raw '{
# "stream": true,
# "model":"gpt-4o-image-vip",
# "messages": [
# {
# "content": "画个牛马,让马的脸上遮个布",
# "role": "user"
# }
# ]
# }'
curl -v --location --request POST 'https://animator-gg-api.ca2324.servep2p.com:8443/api/fal/proxy' \
--header 'Content-Type: application/json' \
--header 'x-fal-target-url: https://api.tu-zi.com/v1/chat/completions' \
--data-raw '{
"model": "gpt-4-gizmo-g-2fkFE8rbu",
"stream": true,
"model":"gpt-4o-image-vip",
"messages": [
{
"role": "user",
"content": "你是谁"
"content": "画个牛马,让马的脸上遮个布",
"role": "user"
}
],
"stream": false
}'
echo
]
}'