Skip to content

Commit

Permalink
feat: support stream chat
Browse files Browse the repository at this point in the history
  • Loading branch information
Leizhenpeng committed Jun 8, 2023
1 parent 4b26df3 commit c9e89ce
Show file tree
Hide file tree
Showing 9 changed files with 380 additions and 20 deletions.
1 change: 1 addition & 0 deletions apis/minimax/text/v1/chat.proto
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ message ChatCompletionsRequest {
bool skip_info_mask = 11;
}


message Choice {
//文本结果
string text = 1;
Expand Down
7 changes: 7 additions & 0 deletions apis/minimax/text/v1/chat_service.proto
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,11 @@ service MinimaxService {
};
option (google.api.method_signature) = "*";
}
rpc ChatCompletionStream(ChatCompletionsRequest) returns (stream ChatCompletionsResponse) {
option (google.api.http) = {
post: "/v1/text/chatcompletion-stream"
body: "*"
};
option (google.api.method_signature) = "*";
}
}
48 changes: 30 additions & 18 deletions gen/go/minimax/text/v1/chat_service.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

58 changes: 58 additions & 0 deletions gen/go/minimax/text/v1/chat_service.pb.gw.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

69 changes: 67 additions & 2 deletions gen/go/minimax/text/v1/chat_service_grpc.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit c9e89ce

Please sign in to comment.