Skip to content

Commit ecb971f

Browse files
committed
add thinking
1 parent e0eba89 commit ecb971f

File tree

1 file changed

+16
-2
lines changed

1 file changed

+16
-2
lines changed

backend/modules/llm/domain/entity/manage.go

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,8 @@ import (
77
"strconv"
88

99
"github.com/bytedance/sonic"
10-
"github.com/pkg/errors"
11-
1210
"github.com/coze-dev/coze-loop/backend/pkg/lang/ptr"
11+
"github.com/pkg/errors"
1312
)
1413

1514
type Model struct {
@@ -143,6 +142,21 @@ type Ability struct {
143142
JsonMode bool `json:"json_mode" yaml:"json_mode" mapstructure:"json_mode"`
144143
MultiModal bool `json:"multi_modal" yaml:"multi_modal" mapstructure:"multi_modal"`
145144
AbilityMultiModal *AbilityMultiModal `json:"ability_multi_modal" yaml:"ability_multi_modal" mapstructure:"ability_multi_modal"`
145+
Thinking *Thinking `json:"thinking" yaml:"thinking" mapstructure:"thinking"`
146+
}
147+
148+
type Thinking struct {
149+
ThinkingType *ThinkingType `json:"thinking_type" yaml:"thinking_type" mapstructure:"thinking_type"`
150+
}
151+
152+
type ThinkingType struct {
153+
Enabled bool `json:"enabled" yaml:"enabled" mapstructure:"enabled"`
154+
ThinkingTypeOptions []ThinkingTypeOption `json:"thinking_type_options" yaml:"thinking_type_options" mapstructure:"thinking_type_options"`
155+
}
156+
157+
type ThinkingTypeOption struct {
158+
Value string `json:"value" yaml:"value" mapstructure:"value"`
159+
Label string `json:"label" yaml:"label" mapstructure:"label"`
146160
}
147161

148162
type AbilityMultiModal struct {

0 commit comments

Comments
 (0)