Add_model_name_field_to_AIRequest
This commit is contained in:
parent
d8b59a079a
commit
53064088f9
14
ai.pb.go
14
ai.pb.go
@ -26,6 +26,7 @@ type AIRequest struct {
|
|||||||
state protoimpl.MessageState `protogen:"open.v1"`
|
state protoimpl.MessageState `protogen:"open.v1"`
|
||||||
Text string `protobuf:"bytes,1,opt,name=text,proto3" json:"text,omitempty"` // Текст запроса
|
Text string `protobuf:"bytes,1,opt,name=text,proto3" json:"text,omitempty"` // Текст запроса
|
||||||
BotUsername string `protobuf:"bytes,2,opt,name=bot_username,json=botUsername,proto3" json:"bot_username,omitempty"` // Username бота для упоминаний
|
BotUsername string `protobuf:"bytes,2,opt,name=bot_username,json=botUsername,proto3" json:"bot_username,omitempty"` // Username бота для упоминаний
|
||||||
|
ModelName string `protobuf:"bytes,3,opt,name=model_name,json=modelName,proto3" json:"model_name,omitempty"` // Название модели (по умолчанию "venice-uncensored")
|
||||||
unknownFields protoimpl.UnknownFields
|
unknownFields protoimpl.UnknownFields
|
||||||
sizeCache protoimpl.SizeCache
|
sizeCache protoimpl.SizeCache
|
||||||
}
|
}
|
||||||
@ -74,6 +75,13 @@ func (x *AIRequest) GetBotUsername() string {
|
|||||||
return ""
|
return ""
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func (x *AIRequest) GetModelName() string {
|
||||||
|
if x != nil {
|
||||||
|
return x.ModelName
|
||||||
|
}
|
||||||
|
return ""
|
||||||
|
}
|
||||||
|
|
||||||
// AIResponse содержит ответ от AI модели
|
// AIResponse содержит ответ от AI модели
|
||||||
type AIResponse struct {
|
type AIResponse struct {
|
||||||
state protoimpl.MessageState `protogen:"open.v1"`
|
state protoimpl.MessageState `protogen:"open.v1"`
|
||||||
@ -229,10 +237,12 @@ var File_ai_proto protoreflect.FileDescriptor
|
|||||||
|
|
||||||
const file_ai_proto_rawDesc = "" +
|
const file_ai_proto_rawDesc = "" +
|
||||||
"\n" +
|
"\n" +
|
||||||
"\bai.proto\x12\x02ai\"B\n" +
|
"\bai.proto\x12\x02ai\"a\n" +
|
||||||
"\tAIRequest\x12\x12\n" +
|
"\tAIRequest\x12\x12\n" +
|
||||||
"\x04text\x18\x01 \x01(\tR\x04text\x12!\n" +
|
"\x04text\x18\x01 \x01(\tR\x04text\x12!\n" +
|
||||||
"\fbot_username\x18\x02 \x01(\tR\vbotUsername\"]\n" +
|
"\fbot_username\x18\x02 \x01(\tR\vbotUsername\x12\x1d\n" +
|
||||||
|
"\n" +
|
||||||
|
"model_name\x18\x03 \x01(\tR\tmodelName\"]\n" +
|
||||||
"\n" +
|
"\n" +
|
||||||
"AIResponse\x12\x18\n" +
|
"AIResponse\x12\x18\n" +
|
||||||
"\acontent\x18\x01 \x01(\tR\acontent\x12\x14\n" +
|
"\acontent\x18\x01 \x01(\tR\acontent\x12\x14\n" +
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user