Skip to content

Commit 8fe7791

Browse files
authored
在调用模型开始和结束检查和扣减 (#28)
* add the detail * add hreader * 解秘 apikey * 修复model转换错误 * fix the getall providers * fix the model * fix the models * add utime desc * 更新 * 优化扣减 * 大模型调用检查 * 添加模型调用结束扣减 * 修复bug * add test * 添加测试 * fix the wire inject * 修复接口 * fmt code * fix wire gen
1 parent c792f8b commit 8fe7791

File tree

22 files changed

+583
-131
lines changed

22 files changed

+583
-131
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,4 +51,4 @@ check:
5151
grpc:
5252
@buf format -w api/proto
5353
@buf lint api/proto
54-
@buf generate api/proto
54+
@buf generate api/proto

api/proto/chat/v1/chat.proto

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,9 @@ option go_package = "v1/chat;chatv1";
2020
message StreamRequest {
2121
string sn = 1;
2222
Message msg = 2;
23+
int64 invocationConfigID = 3;
24+
int64 uid = 4;
25+
string key = 5;
2326
}
2427

2528
message StreamResponse {

0 commit comments

Comments
 (0)