feat: vertexai text

This commit is contained in:
Zheng Kai
2023-09-07 18:10:02 +08:00
parent 87ab452a6a
commit 8259b8b164
11 changed files with 430 additions and 249 deletions

14
misc/test/va/text.sh Executable file
View 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