feat: vertexai

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

1
misc/test/va/.gitignore vendored Normal file
View File

@@ -0,0 +1 @@
*.json

2
misc/test/va/Makefile Normal file
View File

@@ -0,0 +1,2 @@
chat:
./chat.sh

15
misc/test/va/chat.sh Executable file
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