mirror of
https://github.com/yangjian102621/geekai.git
synced 2026-04-21 02:24:32 +08:00
34 lines
936 B
Go
34 lines
936 B
Go
package moderation
|
|
|
|
// * +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
|
|
// * Copyright 2023 The Geek-AI Authors. All rights reserved.
|
|
// * Use of this source code is governed by a Apache-2.0 license
|
|
// * that can be found in the LICENSE file.
|
|
// * @Author yangjian102621@163.com
|
|
// * +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
|
|
|
|
import (
|
|
"errors"
|
|
"geekai/core/types"
|
|
)
|
|
|
|
type TencentAIModeration struct {
|
|
config types.ModerationTencentConfig
|
|
}
|
|
|
|
func NewTencentAIModeration(sysConfig *types.SystemConfig) *TencentAIModeration {
|
|
return &TencentAIModeration{
|
|
config: sysConfig.Moderation.Tencent,
|
|
}
|
|
}
|
|
|
|
func (s *TencentAIModeration) UpdateConfig(config types.ModerationTencentConfig) {
|
|
s.config = config
|
|
}
|
|
|
|
func (s *TencentAIModeration) Moderate(text string) (types.ModerationResult, error) {
|
|
return types.ModerationResult{}, errors.New("not implemented")
|
|
}
|
|
|
|
var _ Service = (*TencentAIModeration)(nil)
|