Skip to content

Commit

Permalink
GetAIModelRequestCount rpc added to Wallet service
Browse files Browse the repository at this point in the history
  • Loading branch information
Mohammad Mahdi Malmasi committed Mar 7, 2024
1 parent 9e56050 commit b879dae
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions protos/platform_management/wallet_server.proto
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ service Wallet {
rpc SetAIModelCostPerReq(SetAIModelCostPerReqRequest) returns (SetAIModelCostPerReqResponse);
rpc GetAIModelsCostPerReq(GetAIModelsCostPerReqRequest) returns (GetAIModelsCostPerReqResponse);
rpc BuyAIModelReqPackage(BuyAIModelReqPackageRequest) returns (BuyAIModelReqPackageResponse);
rpc GetAIModelRequestCount(GetAIModelRequestCountRequest) returns (GetAIModelRequestCountResponse);
}


Expand Down Expand Up @@ -120,3 +121,13 @@ message BuyAIModelReqPackageRequest {

message BuyAIModelReqPackageResponse { // empty message
}


message GetAIModelRequestCountRequest {
string username = 1;
string ai_model_name = 2;
}

message GetAIModelRequestCountResponse {
uint64 req_count = 1;
}

0 comments on commit b879dae

Please sign in to comment.