mirror of
https://github.com/zhengkai/orca.git
synced 2026-03-01 00:35:36 +08:00
test: va param
This commit is contained in:
21
misc/test/va/param.sh
Executable file
21
misc/test/va/param.sh
Executable file
@@ -0,0 +1,21 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
URL="http://localhost:22035/va/chat"
|
||||||
|
|
||||||
|
curl -s "$URL" \
|
||||||
|
-H "Content-Type: application/json" \
|
||||||
|
-H "VA-TOKEN: ${ORCA_VA_TOKEN}" \
|
||||||
|
-d '{
|
||||||
|
"system":"翻译下列语言为中文:",
|
||||||
|
"user":"Hello, world!",
|
||||||
|
"param":{
|
||||||
|
"temperature":0.3,
|
||||||
|
"maxOutputTokens": 100,
|
||||||
|
"topP": 1,
|
||||||
|
"topK": 40
|
||||||
|
},
|
||||||
|
"debug":true
|
||||||
|
}' | tee tmp-chat.json
|
||||||
|
echo
|
||||||
|
|
||||||
|
jq . tmp-chat.json
|
||||||
Reference in New Issue
Block a user