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

View File

@@ -9,14 +9,22 @@ message VaChatReq {
VaParam param = 4;
bool debug = 5;
}
message VaChatRsp {
message VaTextReq {
string prompt = 1;
bool noCache = 3;
VaParam param = 4;
bool debug = 5;
}
message VaRsp {
string content = 1;
bool blocked = 2;
}
message VaChatWebRsp {
message VaWebRsp {
bool ok = 1;
VaChatRsp data = 2;
VaRsp data = 2;
VaDebug debug = 3;
string error = 4;
}