feat: vertexai

This commit is contained in:
Zheng Kai committed 2023-09-01 17:33:51 +08:00
1 parent e620651059
commit bdf34ab55b
18 files changed
+394 -25

No files matched your search

+1
View File
@@ -0,0 +1 @@
*.json
+2
View File
@@ -0,0 +1,2 @@
chat:
./chat.sh
+15
View File
@@ -0,0 +1,15 @@
#!/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!",
"debug":true
}' | tee tmp-chat.json
echo
jq . tmp-chat.json