// Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.36.6 // protoc v3.6.1 // source: proto/chat.proto package proto import ( protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" reflect "reflect" sync "sync" unsafe "unsafe" ) const ( // Verify that this generated code is sufficiently up-to-date. _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) // Verify that runtime/protoimpl is sufficiently up-to-date. _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) ) type ChatCompletionRequest struct { state protoimpl.MessageState `protogen:"open.v1"` Message string `protobuf:"bytes,1,opt,name=message,proto3" json:"message,omitempty"` Id string `protobuf:"bytes,2,opt,name=id,proto3" json:"id,omitempty"` Pid string `protobuf:"bytes,3,opt,name=pid,json=p_id,proto3" json:"pid,omitempty"` EnableContext bool `protobuf:"varint,4,opt,name=enableContext,json=enable_context,proto3" json:"enableContext,omitempty"` ChatParam *ChatParam `protobuf:"bytes,5,opt,name=chatParam,json=chat_param,proto3" json:"chatParam,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } func (x *ChatCompletionRequest) Reset() { *x = ChatCompletionRequest{} mi := &file_proto_chat_proto_msgTypes[0] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } func (x *ChatCompletionRequest) String() string { return protoimpl.X.MessageStringOf(x) } func (*ChatCompletionRequest) ProtoMessage() {} func (x *ChatCompletionRequest) ProtoReflect() protoreflect.Message { mi := &file_proto_chat_proto_msgTypes[0] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) } return ms } return mi.MessageOf(x) } // Deprecated: Use ChatCompletionRequest.ProtoReflect.Descriptor instead. func (*ChatCompletionRequest) Descriptor() ([]byte, []int) { return file_proto_chat_proto_rawDescGZIP(), []int{0} } func (x *ChatCompletionRequest) GetMessage() string { if x != nil { return x.Message } return "" } func (x *ChatCompletionRequest) GetId() string { if x != nil { return x.Id } return "" } func (x *ChatCompletionRequest) GetPid() string { if x != nil { return x.Pid } return "" } func (x *ChatCompletionRequest) GetEnableContext() bool { if x != nil { return x.EnableContext } return false } func (x *ChatCompletionRequest) GetChatParam() *ChatParam { if x != nil { return x.ChatParam } return nil } type ChatParam struct { state protoimpl.MessageState `protogen:"open.v1"` Model string `protobuf:"bytes,1,opt,name=model,proto3" json:"model,omitempty"` MaxTokens int32 `protobuf:"varint,2,opt,name=maxTokens,json=max_tokens,proto3" json:"maxTokens,omitempty"` Temperature float32 `protobuf:"fixed32,3,opt,name=temperature,proto3" json:"temperature,omitempty"` TopP float32 `protobuf:"fixed32,4,opt,name=topP,json=top_p,proto3" json:"topP,omitempty"` PresencePenalty float32 `protobuf:"fixed32,5,opt,name=presencePenalty,json=presence_penalty,proto3" json:"presencePenalty,omitempty"` FrequencyPenalty float32 `protobuf:"fixed32,6,opt,name=frequencyPenalty,json=frequency_penalty,proto3" json:"frequencyPenalty,omitempty"` BotDesc string `protobuf:"bytes,7,opt,name=botDesc,json=bot_desc,proto3" json:"botDesc,omitempty"` MinResponseTokens int32 `protobuf:"varint,8,opt,name=minResponseTokens,json=min_response_tokens,proto3" json:"minResponseTokens,omitempty"` ContextTTL int32 `protobuf:"varint,9,opt,name=contextTTL,json=context_ttl,proto3" json:"contextTTL,omitempty"` ContextLen int32 `protobuf:"varint,10,opt,name=contextLen,json=context_len,proto3" json:"contextLen,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } func (x *ChatParam) Reset() { *x = ChatParam{} mi := &file_proto_chat_proto_msgTypes[1] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } func (x *ChatParam) String() string { return protoimpl.X.MessageStringOf(x) } func (*ChatParam) ProtoMessage() {} func (x *ChatParam) ProtoReflect() protoreflect.Message { mi := &file_proto_chat_proto_msgTypes[1] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) } return ms } return mi.MessageOf(x) } // Deprecated: Use ChatParam.ProtoReflect.Descriptor instead. func (*ChatParam) Descriptor() ([]byte, []int) { return file_proto_chat_proto_rawDescGZIP(), []int{1} } func (x *ChatParam) GetModel() string { if x != nil { return x.Model } return "" } func (x *ChatParam) GetMaxTokens() int32 { if x != nil { return x.MaxTokens } return 0 } func (x *ChatParam) GetTemperature() float32 { if x != nil { return x.Temperature } return 0 } func (x *ChatParam) GetTopP() float32 { if x != nil { return x.TopP } return 0 } func (x *ChatParam) GetPresencePenalty() float32 { if x != nil { return x.PresencePenalty } return 0 } func (x *ChatParam) GetFrequencyPenalty() float32 { if x != nil { return x.FrequencyPenalty } return 0 } func (x *ChatParam) GetBotDesc() string { if x != nil { return x.BotDesc } return "" } func (x *ChatParam) GetMinResponseTokens() int32 { if x != nil { return x.MinResponseTokens } return 0 } func (x *ChatParam) GetContextTTL() int32 { if x != nil { return x.ContextTTL } return 0 } func (x *ChatParam) GetContextLen() int32 { if x != nil { return x.ContextLen } return 0 } // 服务响应消息,非流式响应 type ChatCompletionResponse struct { state protoimpl.MessageState `protogen:"open.v1"` Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` Object string `protobuf:"bytes,2,opt,name=object,proto3" json:"object,omitempty"` Created int64 `protobuf:"varint,3,opt,name=created,proto3" json:"created,omitempty"` Model string `protobuf:"bytes,4,opt,name=model,proto3" json:"model,omitempty"` Choices []*ChatCompletionChoice `protobuf:"bytes,5,rep,name=choices,proto3" json:"choices,omitempty"` Usage *Usage `protobuf:"bytes,6,opt,name=usage,proto3" json:"usage,omitempty"` Source string `protobuf:"bytes,7,opt,name=source,proto3" json:"source,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } func (x *ChatCompletionResponse) Reset() { *x = ChatCompletionResponse{} mi := &file_proto_chat_proto_msgTypes[2] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } func (x *ChatCompletionResponse) String() string { return protoimpl.X.MessageStringOf(x) } func (*ChatCompletionResponse) ProtoMessage() {} func (x *ChatCompletionResponse) ProtoReflect() protoreflect.Message { mi := &file_proto_chat_proto_msgTypes[2] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) } return ms } return mi.MessageOf(x) } // Deprecated: Use ChatCompletionResponse.ProtoReflect.Descriptor instead. func (*ChatCompletionResponse) Descriptor() ([]byte, []int) { return file_proto_chat_proto_rawDescGZIP(), []int{2} } func (x *ChatCompletionResponse) GetId() string { if x != nil { return x.Id } return "" } func (x *ChatCompletionResponse) GetObject() string { if x != nil { return x.Object } return "" } func (x *ChatCompletionResponse) GetCreated() int64 { if x != nil { return x.Created } return 0 } func (x *ChatCompletionResponse) GetModel() string { if x != nil { return x.Model } return "" } func (x *ChatCompletionResponse) GetChoices() []*ChatCompletionChoice { if x != nil { return x.Choices } return nil } func (x *ChatCompletionResponse) GetUsage() *Usage { if x != nil { return x.Usage } return nil } func (x *ChatCompletionResponse) GetSource() string { if x != nil { return x.Source } return "" } type ChatCompletionChoice struct { state protoimpl.MessageState `protogen:"open.v1"` Index int32 `protobuf:"varint,1,opt,name=index,proto3" json:"index,omitempty"` Message *ChatCompletionMessage `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"` FinishReason string `protobuf:"bytes,3,opt,name=finishReason,json=finish_reason,proto3" json:"finishReason,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } func (x *ChatCompletionChoice) Reset() { *x = ChatCompletionChoice{} mi := &file_proto_chat_proto_msgTypes[3] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } func (x *ChatCompletionChoice) String() string { return protoimpl.X.MessageStringOf(x) } func (*ChatCompletionChoice) ProtoMessage() {} func (x *ChatCompletionChoice) ProtoReflect() protoreflect.Message { mi := &file_proto_chat_proto_msgTypes[3] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) } return ms } return mi.MessageOf(x) } // Deprecated: Use ChatCompletionChoice.ProtoReflect.Descriptor instead. func (*ChatCompletionChoice) Descriptor() ([]byte, []int) { return file_proto_chat_proto_rawDescGZIP(), []int{3} } func (x *ChatCompletionChoice) GetIndex() int32 { if x != nil { return x.Index } return 0 } func (x *ChatCompletionChoice) GetMessage() *ChatCompletionMessage { if x != nil { return x.Message } return nil } func (x *ChatCompletionChoice) GetFinishReason() string { if x != nil { return x.FinishReason } return "" } type ChatCompletionMessage struct { state protoimpl.MessageState `protogen:"open.v1"` Role string `protobuf:"bytes,1,opt,name=role,proto3" json:"role,omitempty"` Content string `protobuf:"bytes,2,opt,name=content,proto3" json:"content,omitempty"` Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } func (x *ChatCompletionMessage) Reset() { *x = ChatCompletionMessage{} mi := &file_proto_chat_proto_msgTypes[4] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } func (x *ChatCompletionMessage) String() string { return protoimpl.X.MessageStringOf(x) } func (*ChatCompletionMessage) ProtoMessage() {} func (x *ChatCompletionMessage) ProtoReflect() protoreflect.Message { mi := &file_proto_chat_proto_msgTypes[4] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) } return ms } return mi.MessageOf(x) } // Deprecated: Use ChatCompletionMessage.ProtoReflect.Descriptor instead. func (*ChatCompletionMessage) Descriptor() ([]byte, []int) { return file_proto_chat_proto_rawDescGZIP(), []int{4} } func (x *ChatCompletionMessage) GetRole() string { if x != nil { return x.Role } return "" } func (x *ChatCompletionMessage) GetContent() string { if x != nil { return x.Content } return "" } func (x *ChatCompletionMessage) GetName() string { if x != nil { return x.Name } return "" } type Usage struct { state protoimpl.MessageState `protogen:"open.v1"` PromptTokens int32 `protobuf:"varint,1,opt,name=promptTokens,json=prompt_tokens,proto3" json:"promptTokens,omitempty"` CompletionTokens int32 `protobuf:"varint,2,opt,name=completionTokens,json=completion_tokens,proto3" json:"completionTokens,omitempty"` TotalTokens int32 `protobuf:"varint,3,opt,name=totalTokens,json=total_tokens,proto3" json:"totalTokens,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } func (x *Usage) Reset() { *x = Usage{} mi := &file_proto_chat_proto_msgTypes[5] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } func (x *Usage) String() string { return protoimpl.X.MessageStringOf(x) } func (*Usage) ProtoMessage() {} func (x *Usage) ProtoReflect() protoreflect.Message { mi := &file_proto_chat_proto_msgTypes[5] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) } return ms } return mi.MessageOf(x) } // Deprecated: Use Usage.ProtoReflect.Descriptor instead. func (*Usage) Descriptor() ([]byte, []int) { return file_proto_chat_proto_rawDescGZIP(), []int{5} } func (x *Usage) GetPromptTokens() int32 { if x != nil { return x.PromptTokens } return 0 } func (x *Usage) GetCompletionTokens() int32 { if x != nil { return x.CompletionTokens } return 0 } func (x *Usage) GetTotalTokens() int32 { if x != nil { return x.TotalTokens } return 0 } // 服务响应消息,流式响应 type ChatCompletionStreamResponse struct { state protoimpl.MessageState `protogen:"open.v1"` Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` Object string `protobuf:"bytes,2,opt,name=object,proto3" json:"object,omitempty"` Created int64 `protobuf:"varint,3,opt,name=created,proto3" json:"created,omitempty"` Model string `protobuf:"bytes,4,opt,name=model,proto3" json:"model,omitempty"` Choices []*ChatCompletionStreamChoice `protobuf:"bytes,5,rep,name=choices,proto3" json:"choices,omitempty"` Usage *Usage `protobuf:"bytes,6,opt,name=usage,proto3" json:"usage,omitempty"` Source string `protobuf:"bytes,7,opt,name=source,proto3" json:"source,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } func (x *ChatCompletionStreamResponse) Reset() { *x = ChatCompletionStreamResponse{} mi := &file_proto_chat_proto_msgTypes[6] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } func (x *ChatCompletionStreamResponse) String() string { return protoimpl.X.MessageStringOf(x) } func (*ChatCompletionStreamResponse) ProtoMessage() {} func (x *ChatCompletionStreamResponse) ProtoReflect() protoreflect.Message { mi := &file_proto_chat_proto_msgTypes[6] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) } return ms } return mi.MessageOf(x) } // Deprecated: Use ChatCompletionStreamResponse.ProtoReflect.Descriptor instead. func (*ChatCompletionStreamResponse) Descriptor() ([]byte, []int) { return file_proto_chat_proto_rawDescGZIP(), []int{6} } func (x *ChatCompletionStreamResponse) GetId() string { if x != nil { return x.Id } return "" } func (x *ChatCompletionStreamResponse) GetObject() string { if x != nil { return x.Object } return "" } func (x *ChatCompletionStreamResponse) GetCreated() int64 { if x != nil { return x.Created } return 0 } func (x *ChatCompletionStreamResponse) GetModel() string { if x != nil { return x.Model } return "" } func (x *ChatCompletionStreamResponse) GetChoices() []*ChatCompletionStreamChoice { if x != nil { return x.Choices } return nil } func (x *ChatCompletionStreamResponse) GetUsage() *Usage { if x != nil { return x.Usage } return nil } func (x *ChatCompletionStreamResponse) GetSource() string { if x != nil { return x.Source } return "" } type ChatCompletionStreamChoice struct { state protoimpl.MessageState `protogen:"open.v1"` Index int32 `protobuf:"varint,1,opt,name=index,proto3" json:"index,omitempty"` Delta *ChatCompletionStreamChoiceDelta `protobuf:"bytes,2,opt,name=delta,proto3" json:"delta,omitempty"` FinishReason string `protobuf:"bytes,3,opt,name=finishReason,json=finish_reason,proto3" json:"finishReason,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } func (x *ChatCompletionStreamChoice) Reset() { *x = ChatCompletionStreamChoice{} mi := &file_proto_chat_proto_msgTypes[7] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } func (x *ChatCompletionStreamChoice) String() string { return protoimpl.X.MessageStringOf(x) } func (*ChatCompletionStreamChoice) ProtoMessage() {} func (x *ChatCompletionStreamChoice) ProtoReflect() protoreflect.Message { mi := &file_proto_chat_proto_msgTypes[7] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) } return ms } return mi.MessageOf(x) } // Deprecated: Use ChatCompletionStreamChoice.ProtoReflect.Descriptor instead. func (*ChatCompletionStreamChoice) Descriptor() ([]byte, []int) { return file_proto_chat_proto_rawDescGZIP(), []int{7} } func (x *ChatCompletionStreamChoice) GetIndex() int32 { if x != nil { return x.Index } return 0 } func (x *ChatCompletionStreamChoice) GetDelta() *ChatCompletionStreamChoiceDelta { if x != nil { return x.Delta } return nil } func (x *ChatCompletionStreamChoice) GetFinishReason() string { if x != nil { return x.FinishReason } return "" } type ChatCompletionStreamChoiceDelta struct { state protoimpl.MessageState `protogen:"open.v1"` Content string `protobuf:"bytes,1,opt,name=content,proto3" json:"content,omitempty"` Role string `protobuf:"bytes,2,opt,name=role,proto3" json:"role,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } func (x *ChatCompletionStreamChoiceDelta) Reset() { *x = ChatCompletionStreamChoiceDelta{} mi := &file_proto_chat_proto_msgTypes[8] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } func (x *ChatCompletionStreamChoiceDelta) String() string { return protoimpl.X.MessageStringOf(x) } func (*ChatCompletionStreamChoiceDelta) ProtoMessage() {} func (x *ChatCompletionStreamChoiceDelta) ProtoReflect() protoreflect.Message { mi := &file_proto_chat_proto_msgTypes[8] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) } return ms } return mi.MessageOf(x) } // Deprecated: Use ChatCompletionStreamChoiceDelta.ProtoReflect.Descriptor instead. func (*ChatCompletionStreamChoiceDelta) Descriptor() ([]byte, []int) { return file_proto_chat_proto_rawDescGZIP(), []int{8} } func (x *ChatCompletionStreamChoiceDelta) GetContent() string { if x != nil { return x.Content } return "" } func (x *ChatCompletionStreamChoiceDelta) GetRole() string { if x != nil { return x.Role } return "" } var File_proto_chat_proto protoreflect.FileDescriptor const file_proto_chat_proto_rawDesc = "" + "\n" + "\x10proto/chat.proto\x12\x1aai_chat_service.zvoice.com\"\xc1\x01\n" + "\x15ChatCompletionRequest\x12\x18\n" + "\amessage\x18\x01 \x01(\tR\amessage\x12\x0e\n" + "\x02id\x18\x02 \x01(\tR\x02id\x12\x11\n" + "\x03pid\x18\x03 \x01(\tR\x04p_id\x12%\n" + "\renableContext\x18\x04 \x01(\bR\x0eenable_context\x12D\n" + "\tchatParam\x18\x05 \x01(\v2%.ai_chat_service.zvoice.com.ChatParamR\n" + "chat_param\"\xdc\x02\n" + "\tChatParam\x12\x14\n" + "\x05model\x18\x01 \x01(\tR\x05model\x12\x1d\n" + "\tmaxTokens\x18\x02 \x01(\x05R\n" + "max_tokens\x12 \n" + "\vtemperature\x18\x03 \x01(\x02R\vtemperature\x12\x13\n" + "\x04topP\x18\x04 \x01(\x02R\x05top_p\x12)\n" + "\x0fpresencePenalty\x18\x05 \x01(\x02R\x10presence_penalty\x12+\n" + "\x10frequencyPenalty\x18\x06 \x01(\x02R\x11frequency_penalty\x12\x19\n" + "\abotDesc\x18\a \x01(\tR\bbot_desc\x12.\n" + "\x11minResponseTokens\x18\b \x01(\x05R\x13min_response_tokens\x12\x1f\n" + "\n" + "contextTTL\x18\t \x01(\x05R\vcontext_ttl\x12\x1f\n" + "\n" + "contextLen\x18\n" + " \x01(\x05R\vcontext_len\"\x8d\x02\n" + "\x16ChatCompletionResponse\x12\x0e\n" + "\x02id\x18\x01 \x01(\tR\x02id\x12\x16\n" + "\x06object\x18\x02 \x01(\tR\x06object\x12\x18\n" + "\acreated\x18\x03 \x01(\x03R\acreated\x12\x14\n" + "\x05model\x18\x04 \x01(\tR\x05model\x12J\n" + "\achoices\x18\x05 \x03(\v20.ai_chat_service.zvoice.com.ChatCompletionChoiceR\achoices\x127\n" + "\x05usage\x18\x06 \x01(\v2!.ai_chat_service.zvoice.com.UsageR\x05usage\x12\x16\n" + "\x06source\x18\a \x01(\tR\x06source\"\x9e\x01\n" + "\x14ChatCompletionChoice\x12\x14\n" + "\x05index\x18\x01 \x01(\x05R\x05index\x12K\n" + "\amessage\x18\x02 \x01(\v21.ai_chat_service.zvoice.com.ChatCompletionMessageR\amessage\x12#\n" + "\ffinishReason\x18\x03 \x01(\tR\rfinish_reason\"Y\n" + "\x15ChatCompletionMessage\x12\x12\n" + "\x04role\x18\x01 \x01(\tR\x04role\x12\x18\n" + "\acontent\x18\x02 \x01(\tR\acontent\x12\x12\n" + "\x04name\x18\x03 \x01(\tR\x04name\"|\n" + "\x05Usage\x12#\n" + "\fpromptTokens\x18\x01 \x01(\x05R\rprompt_tokens\x12+\n" + "\x10completionTokens\x18\x02 \x01(\x05R\x11completion_tokens\x12!\n" + "\vtotalTokens\x18\x03 \x01(\x05R\ftotal_tokens\"\x99\x02\n" + "\x1cChatCompletionStreamResponse\x12\x0e\n" + "\x02id\x18\x01 \x01(\tR\x02id\x12\x16\n" + "\x06object\x18\x02 \x01(\tR\x06object\x12\x18\n" + "\acreated\x18\x03 \x01(\x03R\acreated\x12\x14\n" + "\x05model\x18\x04 \x01(\tR\x05model\x12P\n" + "\achoices\x18\x05 \x03(\v26.ai_chat_service.zvoice.com.ChatCompletionStreamChoiceR\achoices\x127\n" + "\x05usage\x18\x06 \x01(\v2!.ai_chat_service.zvoice.com.UsageR\x05usage\x12\x16\n" + "\x06source\x18\a \x01(\tR\x06source\"\xaa\x01\n" + "\x1aChatCompletionStreamChoice\x12\x14\n" + "\x05index\x18\x01 \x01(\x05R\x05index\x12Q\n" + "\x05delta\x18\x02 \x01(\v2;.ai_chat_service.zvoice.com.ChatCompletionStreamChoiceDeltaR\x05delta\x12#\n" + "\ffinishReason\x18\x03 \x01(\tR\rfinish_reason\"O\n" + "\x1fChatCompletionStreamChoiceDelta\x12\x18\n" + "\acontent\x18\x01 \x01(\tR\acontent\x12\x12\n" + "\x04role\x18\x02 \x01(\tR\x04role2\x87\x02\n" + "\x04Chat\x12w\n" + "\x0eChatCompletion\x121.ai_chat_service.zvoice.com.ChatCompletionRequest\x1a2.ai_chat_service.zvoice.com.ChatCompletionResponse\x12\x85\x01\n" + "\x14ChatCompletionStream\x121.ai_chat_service.zvoice.com.ChatCompletionRequest\x1a8.ai_chat_service.zvoice.com.ChatCompletionStreamResponse0\x01B\x17Z\x15ai-chat-service/protob\x06proto3" var ( file_proto_chat_proto_rawDescOnce sync.Once file_proto_chat_proto_rawDescData []byte ) func file_proto_chat_proto_rawDescGZIP() []byte { file_proto_chat_proto_rawDescOnce.Do(func() { file_proto_chat_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_proto_chat_proto_rawDesc), len(file_proto_chat_proto_rawDesc))) }) return file_proto_chat_proto_rawDescData } var file_proto_chat_proto_msgTypes = make([]protoimpl.MessageInfo, 9) var file_proto_chat_proto_goTypes = []any{ (*ChatCompletionRequest)(nil), // 0: ai_chat_service.zvoice.com.ChatCompletionRequest (*ChatParam)(nil), // 1: ai_chat_service.zvoice.com.ChatParam (*ChatCompletionResponse)(nil), // 2: ai_chat_service.zvoice.com.ChatCompletionResponse (*ChatCompletionChoice)(nil), // 3: ai_chat_service.zvoice.com.ChatCompletionChoice (*ChatCompletionMessage)(nil), // 4: ai_chat_service.zvoice.com.ChatCompletionMessage (*Usage)(nil), // 5: ai_chat_service.zvoice.com.Usage (*ChatCompletionStreamResponse)(nil), // 6: ai_chat_service.zvoice.com.ChatCompletionStreamResponse (*ChatCompletionStreamChoice)(nil), // 7: ai_chat_service.zvoice.com.ChatCompletionStreamChoice (*ChatCompletionStreamChoiceDelta)(nil), // 8: ai_chat_service.zvoice.com.ChatCompletionStreamChoiceDelta } var file_proto_chat_proto_depIdxs = []int32{ 1, // 0: ai_chat_service.zvoice.com.ChatCompletionRequest.chatParam:type_name -> ai_chat_service.zvoice.com.ChatParam 3, // 1: ai_chat_service.zvoice.com.ChatCompletionResponse.choices:type_name -> ai_chat_service.zvoice.com.ChatCompletionChoice 5, // 2: ai_chat_service.zvoice.com.ChatCompletionResponse.usage:type_name -> ai_chat_service.zvoice.com.Usage 4, // 3: ai_chat_service.zvoice.com.ChatCompletionChoice.message:type_name -> ai_chat_service.zvoice.com.ChatCompletionMessage 7, // 4: ai_chat_service.zvoice.com.ChatCompletionStreamResponse.choices:type_name -> ai_chat_service.zvoice.com.ChatCompletionStreamChoice 5, // 5: ai_chat_service.zvoice.com.ChatCompletionStreamResponse.usage:type_name -> ai_chat_service.zvoice.com.Usage 8, // 6: ai_chat_service.zvoice.com.ChatCompletionStreamChoice.delta:type_name -> ai_chat_service.zvoice.com.ChatCompletionStreamChoiceDelta 0, // 7: ai_chat_service.zvoice.com.Chat.ChatCompletion:input_type -> ai_chat_service.zvoice.com.ChatCompletionRequest 0, // 8: ai_chat_service.zvoice.com.Chat.ChatCompletionStream:input_type -> ai_chat_service.zvoice.com.ChatCompletionRequest 2, // 9: ai_chat_service.zvoice.com.Chat.ChatCompletion:output_type -> ai_chat_service.zvoice.com.ChatCompletionResponse 6, // 10: ai_chat_service.zvoice.com.Chat.ChatCompletionStream:output_type -> ai_chat_service.zvoice.com.ChatCompletionStreamResponse 9, // [9:11] is the sub-list for method output_type 7, // [7:9] is the sub-list for method input_type 7, // [7:7] is the sub-list for extension type_name 7, // [7:7] is the sub-list for extension extendee 0, // [0:7] is the sub-list for field type_name } func init() { file_proto_chat_proto_init() } func file_proto_chat_proto_init() { if File_proto_chat_proto != nil { return } type x struct{} out := protoimpl.TypeBuilder{ File: protoimpl.DescBuilder{ GoPackagePath: reflect.TypeOf(x{}).PkgPath(), RawDescriptor: unsafe.Slice(unsafe.StringData(file_proto_chat_proto_rawDesc), len(file_proto_chat_proto_rawDesc)), NumEnums: 0, NumMessages: 9, NumExtensions: 0, NumServices: 1, }, GoTypes: file_proto_chat_proto_goTypes, DependencyIndexes: file_proto_chat_proto_depIdxs, MessageInfos: file_proto_chat_proto_msgTypes, }.Build() File_proto_chat_proto = out.File file_proto_chat_proto_goTypes = nil file_proto_chat_proto_depIdxs = nil }