Documentation
¶
Index ¶
- Variables
- func GetBillingEnabled() bool
- func GetDefaultChannelModelMapping() map[int]map[string]string
- func GetDefaultChannelModels() map[int][]string
- func GetDisableModelConfig() bool
- func GetDisableServe() bool
- func GetEnableModelErrorAutoBan() bool
- func GetGeminiSafetySetting() string
- func GetGroupConsumeLevelRatio() map[float64]float64
- func GetGroupConsumeLevelRatioStringKeyMap() map[string]float64
- func GetGroupMaxTokenNum() int64
- func GetInternalToken() string
- func GetLogDetailRequestBodyMaxSize() int64
- func GetLogDetailResponseBodyMaxSize() int64
- func GetLogDetailStorageHours() int64
- func GetLogStorageHours() int64
- func GetModelErrorAutoBanRate() float64
- func GetNotifyNote() string
- func GetRetryTimes() int64
- func GetSaveAllLogDetail() bool
- func GetTimeoutWithModelType() map[int]int64
- func SetBillingEnabled(enabled bool)
- func SetDefaultChannelModelMapping(mapping map[int]map[string]string)
- func SetDefaultChannelModels(models map[int][]string)
- func SetDisableServe(disabled bool)
- func SetEnableModelErrorAutoBan(enabled bool)
- func SetGeminiSafetySetting(setting string)
- func SetGroupConsumeLevelRatio(ratio map[float64]float64)
- func SetGroupMaxTokenNum(num int64)
- func SetInternalToken(token string)
- func SetLogDetailRequestBodyMaxSize(size int64)
- func SetLogDetailResponseBodyMaxSize(size int64)
- func SetLogDetailStorageHours(hours int64)
- func SetLogStorageHours(hours int64)
- func SetModelErrorAutoBanRate(rate float64)
- func SetNotifyNote(note string)
- func SetRetryTimes(times int64)
- func SetSaveAllLogDetail(enabled bool)
- func SetTimeoutWithModelType(timeout map[int]int64)
Constants ¶
This section is empty.
Variables ¶
Functions ¶
func GetBillingEnabled ¶
func GetBillingEnabled() bool
func GetDefaultChannelModels ¶
func GetDisableModelConfig ¶
func GetDisableModelConfig() bool
func GetDisableServe ¶
func GetDisableServe() bool
func GetEnableModelErrorAutoBan ¶
func GetEnableModelErrorAutoBan() bool
func GetGeminiSafetySetting ¶
func GetGeminiSafetySetting() string
func GetGroupMaxTokenNum ¶
func GetGroupMaxTokenNum() int64
GetGroupMaxTokenNum returns max number of tokens per group, 0 means unlimited
func GetInternalToken ¶
func GetInternalToken() string
func GetLogDetailRequestBodyMaxSize ¶
func GetLogDetailRequestBodyMaxSize() int64
func GetLogDetailResponseBodyMaxSize ¶
func GetLogDetailResponseBodyMaxSize() int64
func GetLogDetailStorageHours ¶
func GetLogDetailStorageHours() int64
func GetLogStorageHours ¶
func GetLogStorageHours() int64
func GetModelErrorAutoBanRate ¶
func GetModelErrorAutoBanRate() float64
func GetNotifyNote ¶
func GetNotifyNote() string
func GetRetryTimes ¶
func GetRetryTimes() int64
func GetSaveAllLogDetail ¶
func GetSaveAllLogDetail() bool
func GetTimeoutWithModelType ¶
func SetBillingEnabled ¶
func SetBillingEnabled(enabled bool)
func SetDefaultChannelModels ¶
func SetDisableServe ¶
func SetDisableServe(disabled bool)
func SetEnableModelErrorAutoBan ¶
func SetEnableModelErrorAutoBan(enabled bool)
func SetGeminiSafetySetting ¶
func SetGeminiSafetySetting(setting string)
func SetGroupMaxTokenNum ¶
func SetGroupMaxTokenNum(num int64)
func SetInternalToken ¶
func SetInternalToken(token string)
func SetLogDetailRequestBodyMaxSize ¶
func SetLogDetailRequestBodyMaxSize(size int64)
func SetLogDetailResponseBodyMaxSize ¶
func SetLogDetailResponseBodyMaxSize(size int64)
func SetLogDetailStorageHours ¶
func SetLogDetailStorageHours(hours int64)
func SetLogStorageHours ¶
func SetLogStorageHours(hours int64)
func SetModelErrorAutoBanRate ¶
func SetModelErrorAutoBanRate(rate float64)
func SetNotifyNote ¶
func SetNotifyNote(note string)
func SetRetryTimes ¶
func SetRetryTimes(times int64)
func SetSaveAllLogDetail ¶
func SetSaveAllLogDetail(enabled bool)
func SetTimeoutWithModelType ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.