-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathenum_chat_completions.go
82 lines (61 loc) · 2.06 KB
/
enum_chat_completions.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
package moonshot
type ChatCompletionsMessageRole string
const (
RoleSystem ChatCompletionsMessageRole = "system"
RoleUser ChatCompletionsMessageRole = "user"
RoleAssistant ChatCompletionsMessageRole = "assistant"
RoleTool ChatCompletionsMessageRole = "tool"
RoleContextCache ChatCompletionsMessageRole = "cache"
)
func (c ChatCompletionsMessageRole) String() string {
return string(c)
}
type ChatCompletionsModelID string
const (
ModelMoonshotV1Auto ChatCompletionsModelID = "moonshot-v1-auto"
ModelMoonshotV18K ChatCompletionsModelID = "moonshot-v1-8k"
ModelMoonshotV132K ChatCompletionsModelID = "moonshot-v1-32k"
ModelMoonshotV1128K ChatCompletionsModelID = "moonshot-v1-128k"
)
func (c ChatCompletionsModelID) String() string {
return string(c)
}
type ChatCompletionsModelFamily string
const (
ModelFamilyMoonshotV1 ChatCompletionsModelFamily = "moonshot-v1"
)
func (c ChatCompletionsModelFamily) String() string {
return string(c)
}
type ChatCompletionsFinishReason string
const (
FinishReasonStop ChatCompletionsFinishReason = "stop"
FinishReasonLength ChatCompletionsFinishReason = "length"
FinishReasonToolCalls ChatCompletionsFinishReason = "tool_calls"
)
func (c ChatCompletionsFinishReason) String() string {
return string(c)
}
type ChatCompletionsToolType string
const (
ChatCompletionsToolTypeFunction ChatCompletionsToolType = "function"
ChatCompletionsToolTypeBuiltinFunction ChatCompletionsToolType = "builtin_function"
)
func (c ChatCompletionsToolType) String() string {
return string(c)
}
type ChatCompletionsParametersType string
const (
ChatCompletionsParametersTypeObject ChatCompletionsParametersType = "object"
)
func (c ChatCompletionsParametersType) String() string {
return string(c)
}
type ChatCompletionsResponseFormatType string
const (
ChatCompletionsResponseFormatJSONObject ChatCompletionsResponseFormatType = "json_object"
ChatCompletionsResponseFormatText ChatCompletionsResponseFormatType = "text"
)
func (c ChatCompletionsResponseFormatType) String() string {
return string(c)
}