test: test streaming API
This commit is contained in:
parent
4d3a325dee
commit
a276027bcf
@ -13,21 +13,53 @@
|
|||||||
# ],
|
# ],
|
||||||
# "stream": false
|
# "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
|
# 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' \
|
curl -v --location --request POST 'https://animator-gg-api.ca2324.servep2p.com:8443/api/fal/proxy' \
|
||||||
--header 'Content-Type: application/json' \
|
--header 'Content-Type: application/json' \
|
||||||
--header 'x-fal-target-url: https://api.tu-zi.com/v1/chat/completions' \
|
--header 'x-fal-target-url: https://api.tu-zi.com/v1/chat/completions' \
|
||||||
--data-raw '{
|
--data-raw '{
|
||||||
"model": "gpt-4-gizmo-g-2fkFE8rbu",
|
"stream": true,
|
||||||
|
"model":"gpt-4o-image-vip",
|
||||||
"messages": [
|
"messages": [
|
||||||
{
|
{
|
||||||
"role": "user",
|
"content": "画个牛马,让马的脸上遮个布",
|
||||||
"content": "你是谁"
|
"role": "user"
|
||||||
}
|
}
|
||||||
],
|
]
|
||||||
"stream": false
|
|
||||||
}'
|
}'
|
||||||
|
|
||||||
echo
|
|
||||||
Loading…
x
Reference in New Issue
Block a user