Versions in this module Expand all Collapse all v1 v1.0.0 Jul 31, 2023 Changes in this version + var CodeGenerator_ServiceDesc = grpc.ServiceDesc + var File_replitlmpb_replitlm_proto protoreflect.FileDescriptor + func RegisterCodeGeneratorServer(s grpc.ServiceRegistrar, srv CodeGeneratorServer) + type CodeGeneratorClient interface + SendPrompt func(ctx context.Context, in *CodeRequest, opts ...grpc.CallOption) (*CodeResponse, error) + func NewCodeGeneratorClient(cc grpc.ClientConnInterface) CodeGeneratorClient + type CodeGeneratorServer interface + SendPrompt func(context.Context, *CodeRequest) (*CodeResponse, error) + type CodeRequest struct + Lang string + Prompt string + func (*CodeRequest) Descriptor() ([]byte, []int) + func (*CodeRequest) ProtoMessage() + func (x *CodeRequest) GetLang() string + func (x *CodeRequest) GetPrompt() string + func (x *CodeRequest) ProtoReflect() protoreflect.Message + func (x *CodeRequest) Reset() + func (x *CodeRequest) String() string + type CodeResponse struct + Code int32 + Msg string + Ret *Result + func (*CodeResponse) Descriptor() ([]byte, []int) + func (*CodeResponse) ProtoMessage() + func (x *CodeResponse) GetCode() int32 + func (x *CodeResponse) GetMsg() string + func (x *CodeResponse) GetRet() *Result + func (x *CodeResponse) ProtoReflect() protoreflect.Message + func (x *CodeResponse) Reset() + func (x *CodeResponse) String() string + type Result struct + CodeList []string + CompletionTokenNum int32 + PromptTokenNum int32 + func (*Result) Descriptor() ([]byte, []int) + func (*Result) ProtoMessage() + func (x *Result) GetCodeList() []string + func (x *Result) GetCompletionTokenNum() int32 + func (x *Result) GetPromptTokenNum() int32 + func (x *Result) ProtoReflect() protoreflect.Message + func (x *Result) Reset() + func (x *Result) String() string + type UnimplementedCodeGeneratorServer struct + func (UnimplementedCodeGeneratorServer) SendPrompt(context.Context, *CodeRequest) (*CodeResponse, error) + type UnsafeCodeGeneratorServer interface