Documentation
¶
Index ¶
- Constants
- Variables
- func AutoGroups2JsonString() string
- func Chats2JsonString() string
- func CheckModelRequestRateLimitGroup(jsonStr string) error
- func ContainsAutoGroup(group string) bool
- func GetAutoGroups() []string
- func GetGroupRateLimit(group string) (totalCount, successCount int, found bool)
- func GetMaxTokenAutoGroups() int
- func GetUsableGroupDescription(groupName string) string
- func GetUserUsableGroupsCopy() map[string]string
- func GetWaffoPayMethods() []constant.WaffoPayMethod
- func ModelRequestRateLimitGroup2JSONString() string
- func SensitiveWordsFromString(s string)
- func SensitiveWordsToString() string
- func SetWaffoPayMethods(methods []constant.WaffoPayMethod) error
- func ShouldCheckPromptSensitive() bool
- func UpdateAutoGroupsByJsonString(jsonString string) error
- func UpdateChatsByJsonString(jsonString string) error
- func UpdateMaxTokenAutoGroups(value string) error
- func UpdateModelRequestRateLimitGroupByJSONString(jsonStr string) error
- func UpdateUserUsableGroupsByJSONString(jsonStr string) error
- func UserUsableGroups2JSONString() string
- func ValidateMaxTokenAutoGroups(value string) error
- func WaffoPayMethods2JsonString() string
Constants ¶
const DefaultMaxTokenAutoGroups = 5
Variables ¶
var ( WaffoEnabled bool WaffoApiKey string WaffoPrivateKey string WaffoPublicCert string WaffoSandboxPublicCert string WaffoSandboxApiKey string WaffoSandboxPrivateKey string WaffoSandbox bool WaffoMerchantId string WaffoNotifyUrl string WaffoReturnUrl string WaffoSubscriptionReturnUrl string WaffoCurrency string WaffoUnitPrice float64 = 1.0 WaffoMinTopUp int = 1 )
var ( WaffoPancakeMerchantID string WaffoPancakePrivateKey string WaffoPancakeReturnURL string WaffoPancakeUnitPrice float64 = 1.0 WaffoPancakeMinTopUp int = 1 WaffoPancakeStoreID string WaffoPancakeProductID string )
Waffo Pancake hosted checkout configuration. Gateway is enabled once MerchantID + PrivateKey + ProductID are populated (no separate Enabled flag, matching Stripe / Creem). StoreID + ProductID are operator-bound via SaveWaffoPancakeConfig.
var Chats = []map[string]string{}
Keep third-party client links opt-in. Administrators can add only the integrations they trust from System Settings without shipping promotional entries to every deployment by default.
var CheckSensitiveEnabled = true
var CheckSensitiveOnPromptEnabled = true
var CreemApiKey = ""
var CreemProducts = "[]"
var CreemTestMode = false
var CreemWebhookSecret = ""
var DefaultUseAutoGroup = false
var MjAccountFilterEnabled = false
var MjActionCheckSuccessEnabled = true
var MjForwardUrlEnabled = true
var MjModeClearEnabled = false
var MjNotifyEnabled = false
var ModelRequestRateLimitCount = 0
var ModelRequestRateLimitDurationMinutes = 1
var ModelRequestRateLimitEnabled = false
var ModelRequestRateLimitGroup = map[string][2]int{}
var ModelRequestRateLimitMutex sync.RWMutex
var ModelRequestRateLimitSuccessCount = 1000
var SensitiveWords = []string{
"test_sensitive",
}
SensitiveWords 敏感词 var SensitiveWords []string
var StopOnSensitiveEnabled = true
StopOnSensitiveEnabled 如果检测到敏感词,是否立刻停止生成,否则替换敏感词
var StreamCacheQueueLength = 0
StreamCacheQueueLength 流模式缓存队列长度,0表示无缓存
var StripeApiSecret = ""
var StripeMinTopUp = 1
var StripePriceId = ""
var StripePromotionCodesEnabled = false
var StripeUnitPrice = 8.0
var StripeWebhookSecret = ""
Functions ¶
func AutoGroups2JsonString ¶
func AutoGroups2JsonString() string
func Chats2JsonString ¶
func Chats2JsonString() string
func ContainsAutoGroup ¶
func GetAutoGroups ¶
func GetAutoGroups() []string
func GetGroupRateLimit ¶
func GetMaxTokenAutoGroups ¶
func GetMaxTokenAutoGroups() int
func GetUserUsableGroupsCopy ¶
func GetWaffoPayMethods ¶
func GetWaffoPayMethods() []constant.WaffoPayMethod
GetWaffoPayMethods 从 options 读取 Waffo 支付方式配置
func ModelRequestRateLimitGroup2JSONString ¶
func ModelRequestRateLimitGroup2JSONString() string
func SensitiveWordsFromString ¶
func SensitiveWordsFromString(s string)
func SensitiveWordsToString ¶
func SensitiveWordsToString() string
func SetWaffoPayMethods ¶
func SetWaffoPayMethods(methods []constant.WaffoPayMethod) error
SetWaffoPayMethods 序列化 Waffo 支付方式配置并更新 OptionMap
func ShouldCheckPromptSensitive ¶
func ShouldCheckPromptSensitive() bool
func UpdateChatsByJsonString ¶
func UserUsableGroups2JSONString ¶
func UserUsableGroups2JSONString() string
func WaffoPayMethods2JsonString ¶
func WaffoPayMethods2JsonString() string
WaffoPayMethods2JsonString 将默认 WaffoPayMethods 序列化为 JSON 字符串(供 InitOptionMap 使用)
Types ¶
This section is empty.
Source Files
¶
Directories
¶
| Path | Synopsis |
|---|---|
|
Package reasoning re-exports the pure model-name effort-suffix helpers, which moved to the conversion kit (service/relayconvert/reasoning) as part of the relaykit extraction.
|
Package reasoning re-exports the pure model-name effort-suffix helpers, which moved to the conversion kit (service/relayconvert/reasoning) as part of the relaykit extraction. |