Regenerate_proto_files
This commit is contained in:
parent
53064088f9
commit
0794b967e3
13
ai.pb.go
13
ai.pb.go
@ -27,6 +27,7 @@ type AIRequest struct {
|
|||||||
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")
|
ModelName string `protobuf:"bytes,3,opt,name=model_name,json=modelName,proto3" json:"model_name,omitempty"` // Название модели (по умолчанию "venice-uncensored")
|
||||||
|
EnableReasoning bool `protobuf:"varint,4,opt,name=enable_reasoning,json=enableReasoning,proto3" json:"enable_reasoning,omitempty"` // Включить режим рассуждений (по умолчанию false)
|
||||||
unknownFields protoimpl.UnknownFields
|
unknownFields protoimpl.UnknownFields
|
||||||
sizeCache protoimpl.SizeCache
|
sizeCache protoimpl.SizeCache
|
||||||
}
|
}
|
||||||
@ -82,6 +83,13 @@ func (x *AIRequest) GetModelName() string {
|
|||||||
return ""
|
return ""
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func (x *AIRequest) GetEnableReasoning() bool {
|
||||||
|
if x != nil {
|
||||||
|
return x.EnableReasoning
|
||||||
|
}
|
||||||
|
return false
|
||||||
|
}
|
||||||
|
|
||||||
// AIResponse содержит ответ от AI модели
|
// AIResponse содержит ответ от AI модели
|
||||||
type AIResponse struct {
|
type AIResponse struct {
|
||||||
state protoimpl.MessageState `protogen:"open.v1"`
|
state protoimpl.MessageState `protogen:"open.v1"`
|
||||||
@ -237,12 +245,13 @@ var File_ai_proto protoreflect.FileDescriptor
|
|||||||
|
|
||||||
const file_ai_proto_rawDesc = "" +
|
const file_ai_proto_rawDesc = "" +
|
||||||
"\n" +
|
"\n" +
|
||||||
"\bai.proto\x12\x02ai\"a\n" +
|
"\bai.proto\x12\x02ai\"\x8c\x01\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\x12\x1d\n" +
|
"\fbot_username\x18\x02 \x01(\tR\vbotUsername\x12\x1d\n" +
|
||||||
"\n" +
|
"\n" +
|
||||||
"model_name\x18\x03 \x01(\tR\tmodelName\"]\n" +
|
"model_name\x18\x03 \x01(\tR\tmodelName\x12)\n" +
|
||||||
|
"\x10enable_reasoning\x18\x04 \x01(\bR\x0fenableReasoning\"]\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" +
|
||||||
|
|||||||
1
ai.proto
1
ai.proto
@ -9,6 +9,7 @@ message AIRequest {
|
|||||||
string text = 1; // Текст запроса
|
string text = 1; // Текст запроса
|
||||||
string bot_username = 2; // Username бота для упоминаний
|
string bot_username = 2; // Username бота для упоминаний
|
||||||
string model_name = 3; // Название модели (по умолчанию "venice-uncensored")
|
string model_name = 3; // Название модели (по умолчанию "venice-uncensored")
|
||||||
|
bool enable_reasoning = 4; // Включить режим рассуждений (по умолчанию false)
|
||||||
}
|
}
|
||||||
|
|
||||||
// AIResponse содержит ответ от AI модели
|
// AIResponse содержит ответ от AI модели
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user