Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // GPTCli *chatgpt.Client GPTCli2 *openai.Client LCA *biz.LangChainAgent AllowIps *AllowedKeys AllowApiKeys *AllowedKeys Logger *wrap.Logger TransLogger *zap.Logger // transaction ReqLogger *zap.Logger // request AppLogger *zap.Logger // application )
Functions ¶
func SetProject ¶
func SetupLoggers ¶
func SetupLoggers()
Types ¶
type AllowedKeys ¶
type AllowedKeys struct { Enable bool `mapstructure:"enable"` Items []string `mapstructure:"items"` // contains filtered or unexported fields }
func NewAllowedKeys ¶
func NewAllowedKeys(fp, key string) (cfg *AllowedKeys, err error)
func (*AllowedKeys) Check ¶
func (cfg *AllowedKeys) Check(item string) bool
Click to show internal directories.
Click to hide internal directories.