mirror of
https://github.com/zhengkai/orca.git
synced 2026-02-04 14:42:26 +08:00
feat: vertexai
This commit is contained in:
1
misc/test/va/.gitignore
vendored
Normal file
1
misc/test/va/.gitignore
vendored
Normal file
@@ -0,0 +1 @@
|
||||
*.json
|
||||
2
misc/test/va/Makefile
Normal file
2
misc/test/va/Makefile
Normal file
@@ -0,0 +1,2 @@
|
||||
chat:
|
||||
./chat.sh
|
||||
15
misc/test/va/chat.sh
Executable file
15
misc/test/va/chat.sh
Executable 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
|
||||
Reference in New Issue
Block a user