mirror of
https://github.com/zhengkai/orca.git
synced 2026-02-04 14:42:26 +08:00
feat: vertexai text
This commit is contained in:
14
misc/test/va/text.sh
Executable file
14
misc/test/va/text.sh
Executable file
@@ -0,0 +1,14 @@
|
||||
#!/bin/bash
|
||||
|
||||
URL="http://localhost:22035/va/text"
|
||||
|
||||
curl -s "$URL" \
|
||||
-H "Content-Type: application/json" \
|
||||
-H "VA-TOKEN: ${ORCA_VA_TOKEN}" \
|
||||
-d '{
|
||||
"prompt":"翻译下列语言为中文:\n\n3 2 1 Hello, world!",
|
||||
"debug":true
|
||||
}' | tee tmp-text.json
|
||||
echo
|
||||
|
||||
jq . tmp-text.json
|
||||
Reference in New Issue
Block a user