Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Hoshinonyaruko/Gensokyo-llm
/ functions
Functions
763 in github.com/Hoshinonyaruko/Gensokyo-llm
⨍
Functions
763
◇
Types & classes
203
↓ 4 callers
Function
GetPromptKeyboardAI
你要扮演一个json生成器,根据我下一句提交的QA内容,推断我可能会继续问的问题,生成json数组格式的结果,如:输入Q我好累啊A要休息一下吗,返回["嗯,我想要休息","我想喝杯咖啡","你平时怎么休息呢"],返回需要是["","",""]需要2-3个结果
promptkb/promptkb.go:27
↓ 4 callers
Function
GetQuestionMaxLenth
获取QuestionMaxLenth
config/config.go:1161
↓ 4 callers
Function
GetUseAIPromptkeyboard
获取UseAIPromptkeyboard
config/config.go:1327
↓ 4 callers
Function
IsInBlacklist
isInBlacklist 检查给定的ID是否在黑名单中。
utils/blacklist.go:49
↓ 4 callers
Function
SendGroupMessageMdPromptKeyboard
(groupID int64, userID int64, message string, selfid string, newmsg string, response string, promptstr string)
utils/utils.go:478
↓ 4 callers
Function
SysLog
(s string)
common/logger/logger.go:46
↓ 4 callers
Function
formatHistory
(history []structs.Message)
applogic/memory.go:513
↓ 4 callers
Function
hmacSha256
(s, key string)
relay/adaptor/tencent/main.go:187
↓ 4 callers
Function
logHelper
(ctx context.Context, level string, msg string)
common/logger/logger.go:98
↓ 4 callers
Method
migrateUserToNewContext
(userID int64)
applogic/app.go:355
↓ 4 callers
Method
updateUserContext
(userID int64, parentMessageID string)
applogic/app.go:383
↓ 4 callers
Method
updateUserContextSP
(userID string, parentMessageID string)
applogic/app.go:392
↓ 4 callers
Function
vectorToBinaryConcurrent
二进制向量处理
applogic/embeddings.go:172
↓ 3 callers
Method
ApplyPromptChoiceQ
ApplyPromptChoiceQ 应用promptchoiceQ的逻辑,动态修改requestmsg
applogic/flow.go:15
↓ 3 callers
Function
CheckWordIN
改写后的函数,接受word参数,并返回处理结果
acnode/acnode.go:328
↓ 3 callers
Function
GetAIPromptkeyboardPath
获取AIPromptkeyboardPath
config/config.go:1337
↓ 3 callers
Function
GetAntiPromptAttackPath
获取AntiPromptAttackPath
config/config.go:800
↓ 3 callers
Function
GetGptModel
获取GptModel
config/config.go:344
↓ 3 callers
Function
GetGroupAddCardToQ
获取GroupAddCardToQ
config/config.go:3322
↓ 3 callers
Function
GetGroupAddNicknameToQ
获取GroupAddNicknameToQ
config/config.go:3284
↓ 3 callers
Function
GetGroupHintWords
GetGroupHintWords 获取GroupHintWords列表,可接受basename作为参数
config/config.go:2882
↓ 3 callers
Function
GetRandomRestoreResponses
GetRestoreResponses 从RestoreResponses数组中随机选择一个字符串返回
config/config.go:852
↓ 3 callers
Function
GetRandomSaveResponse
GetRandomSaveResponse 从SaveResponses数组中随机选择一个字符串返回
config/config.go:830
↓ 3 callers
Function
GetStringob11
获取Stringob11
config/config.go:3557
↓ 3 callers
Function
GetTemperatureHunyuan
获取TemperatureHunyuan值
config/config.go:2980
↓ 3 callers
Function
GetTopPHunyuan
获取TopPHunyuan值
config/config.go:2948
↓ 3 callers
Function
GetTyqwMaxTokens
获取TYQW最大Token数量,可接受basename作为参数
config/config.go:2235
↓ 3 callers
Function
GetWenxinApiPath
获取WenxinApiPath
config/config.go:296
↓ 3 callers
Function
NewAhoCorasick
()
acnode/acnode.go:68
↓ 3 callers
Method
ParseInput
()
relay/model/general.go:33
↓ 3 callers
Method
deleteCustomRecord
(userID int64)
applogic/promptstr.go:98
↓ 3 callers
Method
handleUserContext
(userID int64)
applogic/app.go:299
↓ 3 callers
Method
handleUserContextSP
(userID string)
applogic/app.go:327
↓ 3 callers
Function
loadWordsIntoAC
(ac *AhoCorasick, filename string)
acnode/acnode.go:251
↓ 3 callers
Method
migrateUserToNewContextSP
(userID string)
applogic/app.go:369
↓ 3 callers
Function
userId2Key
(id int)
common/blacklist/main.go:14
↓ 2 callers
Method
AddUserMemory
(userID int64, conversationID, parentMessageID, conversationTitle string)
applogic/app.go:496
↓ 2 callers
Method
AddUserMemorySP
(userID string, conversationID, parentMessageID, conversationTitle string)
applogic/app.go:510
↓ 2 callers
Function
AppendRune
(conversationID string, char rune)
applogic/gensokyo.go:1320
↓ 2 callers
Method
ApplyPromptCoverQ
ApplyPromptCoverQ 应用promptCoverQ的逻辑,动态覆盖requestmsg
applogic/flow.go:112
↓ 2 callers
Function
AsString
(v any)
common/conv/any.go:3
↓ 2 callers
Function
Bool
(env string, defaultValue bool)
common/env/helper.go:8
↓ 2 callers
Method
ChatStd
ChatStd <span style="font-size:1.5em;">注意:本接口将于 5 月 15 日下线;下线后将不再提供文档指引,接口本身可继续调用,建议使用 [hunyuan](https://cloud.tencent.com/document/api/1729/105701) 接
hunyuan/client.go:257
↓ 2 callers
Method
CheckAndUpdateRateLimit
检查是否超过调用频率限制
server/uploadpic.go:184
↓ 2 callers
Function
CheckPromptExistence
CheckPromptExistence 检查基于 basename 组合的 filename 是否存在于 promptsCache 中
prompt/prompt.go:281
↓ 2 callers
Function
FilterSimplifiedChinese
FilterSimplifiedChinese filters the input string to keep only simplified Chinese characters
utils/utils.go:3299
↓ 2 callers
Method
FilterWithWhitelist
(text string, whiteListedPositions []Position)
acnode/acnode.go:114
↓ 2 callers
Function
FriendlyLanguageNameCN
FriendlyLanguageNameCN 将语言代码映射为中文名称
utils/utils.go:2891
↓ 2 callers
Function
GetAccessKey
获取AccessKey
config/config.go:90
↓ 2 callers
Method
GetAndSendEnv
分开发而且不使用sse
applogic/env.go:32
↓ 2 callers
Function
GetCacheChance
获取CacheChance
config/config.go:985
↓ 2 callers
Function
GetCacheThreshold
获取CacheThreshold
config/config.go:975
↓ 2 callers
Function
GetCompatibleChannelMeta
()
relay/adaptor/openai/compatible.go:3
↓ 2 callers
Function
GetConversationPath
GetConversationPath 获取ConversationPath,可接受basename作为参数
config/config.go:3401
↓ 2 callers
Function
GetCurrentMessage
(conversationID string)
applogic/gensokyo.go:1327
↓ 2 callers
Function
GetEnvContents
获取 EnvContents
config/config.go:2143
↓ 2 callers
Function
GetEnvType
获取EnvType
config/config.go:2007
↓ 2 callers
Function
GetGlmApiKey
GetGlmApiKey 获取glm密钥,可接受basename作为参数
config/config.go:2670
↓ 2 callers
Function
GetGlmApiPath
GetGlmApiPath 获取GLM API路径,可接受basename作为参数
config/config.go:2594
↓ 2 callers
Function
GetGlmMaxTokens
GetGlmMaxTokens 获取模型输出的最大tokens数,可接受basename作为参数
config/config.go:2708
↓ 2 callers
Function
GetGptApiPath
获取GptApiPath
config/config.go:382
↓ 2 callers
Function
GetGptSseType
获取GptSseType
config/config.go:512
↓ 2 callers
Function
GetGptToken
获取GptToken
config/config.go:416
↓ 2 callers
Function
GetGroupHintChance
获取GroupHintChance
config/config.go:608
↓ 2 callers
Function
GetGroupmessage
是否开启群信息
config/config.go:522
↓ 2 callers
Function
GetKey
获取复合键
utils/utils.go:165
↓ 2 callers
Function
GetKeySP
获取复合键
utils/utils.go:170
↓ 2 callers
Function
GetLanguagesResponseMessages
GetLanguagesResponseMessages 返回语言拦截响应消息列表
config/config.go:1145
↓ 2 callers
Function
GetMdPromptKeyboardAtGroupCmds
获取 MdPromptKeyboardAtGroupCmds
config/config.go:3523
↓ 2 callers
Function
GetMessageLength
(conversationID string)
applogic/gensokyo.go:1339
↓ 2 callers
Function
GetNo4Promptkeyboard
第四个气泡
config/config.go:2187
↓ 2 callers
Function
GetPrintVector
获取PrintVector
config/config.go:1055
↓ 2 callers
Function
GetPromptMarks
获取 PromptMarks
config/config.go:1701
↓ 2 callers
Function
GetProxy
获取Proxy
config/config.go:1599
↓ 2 callers
Function
GetQmlResponseMessages
GetQmlResponseMessages 返回语言拦截响应消息列表
config/config.go:1171
↓ 2 callers
Method
GetRandomAnswer
GetRandomAnswer 根据问题文本随机获取一个答案
applogic/embeddings.go:122
↓ 2 callers
Function
GetReplacementPairsIn
获取 ReplacementPairsIn
config/config.go:3059
↓ 2 callers
Function
GetReplacementPairsOut
获取 ReplacementPairsOut
config/config.go:3100
↓ 2 callers
Function
GetRwkvMaxTokens
获取RWKV最大令牌数
config/config.go:1381
↓ 2 callers
Function
GetSensitiveMode
是否SensitiveMode
config/config.go:780
↓ 2 callers
Function
GetSplitByPuntuationsGroup
获取GetSplitByPuntuationsGroup
config/config.go:570
↓ 2 callers
Function
GetSuperSafe
获取NoEmoji
config/config.go:3479
↓ 2 callers
Function
GetTyqwApiPath
GetTyqwApiPath 获取TYQW API路径,可接受basename作为参数
config/config.go:2197
↓ 2 callers
Function
GetTyqwAssistantName
获取TYQW助手名称
config/config.go:2435
↓ 2 callers
Function
GetTyqwEnableSearch
获取TYQW是否启用互联网搜索
config/config.go:2495
↓ 2 callers
Function
GetTyqwKey
GetTyqwKey 获取TYQW API Key,可接受basename作为参数
config/config.go:2543
↓ 2 callers
Function
GetTyqwModel
GetTyqwModel 获取TYQW模型名称,可接受basename作为参数
config/config.go:2505
↓ 2 callers
Function
GetTyqwPreSystem
获取TYQW是否在系统层面进行预处理
config/config.go:2455
↓ 2 callers
Function
GetTyqwRepetitionPenalty
获取TYQW重复度惩罚因子
config/config.go:2465
↓ 2 callers
Function
GetTyqwSeed
获取TYQW随机数种子
config/config.go:2485
↓ 2 callers
Function
GetTyqwSseType
GetTyqwSseType 获取TYQW SSE类型,可接受basename作为参数
config/config.go:2387
↓ 2 callers
Function
GetTyqwStopTokens
获取TYQW停止标记
config/config.go:2475
↓ 2 callers
Function
GetTyqwSystemName
获取TYQW系统名称
config/config.go:2445
↓ 2 callers
Function
GetTyqwTemperature
GetTyqwTemperature 获取TYQW温度设置,可接受basename作为参数
config/config.go:2273
↓ 2 callers
Function
GetTyqwTopK
GetTyqwTopK 获取TYQW Top K设置,可接受basename作为参数
config/config.go:2349
↓ 2 callers
Function
GetTyqwTopP
GetTyqwTopP 获取TYQW Top P值,可接受basename作为参数
config/config.go:2311
↓ 2 callers
Function
GetTyqwUserName
获取TYQW用户名
config/config.go:2425
↓ 2 callers
Function
GetUUID
()
common/random/main.go:10
↓ 2 callers
Function
GetUserInfo
GetUserInfo 根据conversationID获取用户信息
applogic/gensokyo.go:1312
↓ 2 callers
Function
GetUserInfoSP
GetUserInfoSP 根据conversationID获取用户信息
applogic/gensokyo_sp.go:903
← previous
next →
101–200 of 763, ranked by callers