-
Notifications
You must be signed in to change notification settings - Fork 4
/
llm_service.pbext.go
113 lines (85 loc) · 2.24 KB
/
llm_service.pbext.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
// Code generated by protoc-gen-goext. DO NOT EDIT.
package llm
type InstructRequest_Instruction = isInstructRequest_Instruction
func (m *InstructRequest) SetInstruction(v InstructRequest_Instruction) {
m.Instruction = v
}
type InstructRequest_Request = isInstructRequest_Request
func (m *InstructRequest) SetRequest(v InstructRequest_Request) {
m.Request = v
}
func (m *InstructRequest) SetModel(v string) {
m.Model = v
}
func (m *InstructRequest) SetGenerationOptions(v *GenerationOptions) {
m.GenerationOptions = v
}
func (m *InstructRequest) SetInstructionText(v string) {
m.Instruction = &InstructRequest_InstructionText{
InstructionText: v,
}
}
func (m *InstructRequest) SetInstructionUri(v string) {
m.Instruction = &InstructRequest_InstructionUri{
InstructionUri: v,
}
}
func (m *InstructRequest) SetRequestText(v string) {
m.Request = &InstructRequest_RequestText{
RequestText: v,
}
}
func (m *InstructResponse) SetAlternatives(v []*Alternative) {
m.Alternatives = v
}
func (m *InstructResponse) SetNumPromptTokens(v int64) {
m.NumPromptTokens = v
}
type ChatRequest_Instruction = isChatRequest_Instruction
func (m *ChatRequest) SetInstruction(v ChatRequest_Instruction) {
m.Instruction = v
}
func (m *ChatRequest) SetModel(v string) {
m.Model = v
}
func (m *ChatRequest) SetGenerationOptions(v *GenerationOptions) {
m.GenerationOptions = v
}
func (m *ChatRequest) SetInstructionText(v string) {
m.Instruction = &ChatRequest_InstructionText{
InstructionText: v,
}
}
func (m *ChatRequest) SetMessages(v []*Message) {
m.Messages = v
}
func (m *ChatResponse) SetMessage(v *Message) {
m.Message = v
}
func (m *ChatResponse) SetNumTokens(v int64) {
m.NumTokens = v
}
func (m *TokenizeRequest) SetModel(v string) {
m.Model = v
}
func (m *TokenizeRequest) SetText(v string) {
m.Text = v
}
func (m *TokenizeResponse) SetTokens(v []*Token) {
m.Tokens = v
}
func (m *EmbeddingRequest) SetEmbeddingType(v EmbeddingRequest_EmbeddingType) {
m.EmbeddingType = v
}
func (m *EmbeddingRequest) SetModel(v string) {
m.Model = v
}
func (m *EmbeddingRequest) SetText(v string) {
m.Text = v
}
func (m *EmbeddingResponse) SetEmbedding(v []float64) {
m.Embedding = v
}
func (m *EmbeddingResponse) SetNumTokens(v int64) {
m.NumTokens = v
}