feat: vertexai text

This commit is contained in:
Zheng Kai committed 2023-09-07 18:48:56 +08:00
1 parent 87ab452a6a
commit 8259b8b164
11 files changed
+430 -249

No files matched your search

+14
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