MCPcopy Create free account

hub / github.com/ConnectAI-E/Feishu-OpenAI-Stream-Chatbot / functions

Functions192 in github.com/ConnectAI-E/Feishu-OpenAI-Stream-Chatbot

↓ 1 callersFunctionsendOnProcessCard
(ctx context.Context, sessionId *string, msgId *string)
code/handlers/msg.go:656
↓ 1 callersFunctionstartHTTPSServer
(config Config, r *gin.Engine)
code/initialization/gin.go:45
↓ 1 callersFunctionstartHTTPServer
(config Config, r *gin.Engine)
code/initialization/gin.go:37
↓ 1 callersFunctionupdateTextCard
(ctx context.Context, msg string, msgId *string)
code/handlers/msg.go:667
↓ 1 callersFunctionuploadImage
(base64Str string)
code/handlers/msg.go:490
↓ 1 callersFunctionwithClearDoubleCheckBtn
清除卡片按钮
code/handlers/msg.go:314
↓ 1 callersFunctionwithImageDiv
(imageKey string)
code/handlers/msg.go:239
↓ 1 callersFunctionwithMdAndExtraBtn
withMdAndExtraBtn 用于生成带有额外按钮的消息体
code/handlers/msg.go:252
↓ 1 callersFunctionwithOneBtn
(btn *larkcard.MessageCardEmbedButton)
code/handlers/msg.go:363
↓ 1 callersFunctionwithPicResolutionBtn
新建对话按钮
code/handlers/msg.go:374
↓ 1 callersFunctionwithRoleBtn
(sessionID *string, titles ...string)
code/handlers/msg.go:430
↓ 1 callersFunctionwithRoleTagsBtn
(sessionID *string, tags ...string)
code/handlers/msg.go:403
FunctionAzureModeCheck
(a *ActionInfo)
code/handlers/handler.go:130
FunctionCalcTokenFromMsgList
(msgs []openai.ChatCompletionMessage)
code/services/chatgpt/tokenizer.go:14
FunctionCardHandler
()
code/handlers/init.go:41
FunctionCheckAllowAccessThenIncrement
* CheckAllowAccessThenIncrement If user has accessed more than 100 times according to accessCountMap, return false. Otherwise, return true and increas
code/services/accesscontrol/access_control.go:16
FunctionCheckChatCompletionMessages
(messages []openai.ChatCompletionMessage)
code/services/chatgpt/check.go:14
MethodClear
(sessionId string)
code/services/sessionCache.go:44
MethodClear
(sessionId string)
code/services/sessionCache.go:134
MethodClear
(userId string)
code/services/msgCache.go:27
FunctionCloseLogger
(logger *lumberjack.Logger)
code/utils/logUtils.go:17
FunctionConvertJpegToPNG
(jpgPath string)
code/services/openai/picture.go:234
FunctionCutPrefix
(s, prefix string)
code/utils/strings.go:5
MethodExecute
(a *ActionInfo)
code/handlers/event_common_action.go:37
MethodExecute
(a *ActionInfo)
code/handlers/event_common_action.go:48
MethodExecute
(a *ActionInfo)
code/handlers/event_common_action.go:66
MethodExecute
(a *ActionInfo)
code/handlers/event_common_action.go:79
MethodExecute
(a *ActionInfo)
code/handlers/event_common_action.go:92
MethodExecute
(a *ActionInfo)
code/handlers/event_common_action.go:110
MethodExecute
(a *ActionInfo)
code/handlers/event_common_action.go:122
MethodExecute
(a *ActionInfo)
code/handlers/event_common_action.go:139
MethodExecute
(a *ActionInfo)
code/handlers/event_msg_action.go:20
MethodGenerateOneImageWithDefaultSize
( prompt string)
code/services/openai/picture.go:68
MethodGetAPIs
()
code/services/loadbalancer/loadbalancer.go:99
FunctionGetAccessCountMap
()
code/services/accesscontrol/access_control.go:64
FunctionGetAllUniqueTags
()
code/initialization/roles_load.go:37
MethodGetCertFile
()
code/initialization/config.go:149
FunctionGetConfig
* GetConfig will call LoadConfig once and return a global singleton, you should always use this function to get config */
code/initialization/config.go:51
FunctionGetCurrentDateAsString
()
code/utils/commonUtils.go:7
FunctionGetCurrentDateFlag
()
code/services/accesscontrol/access_control.go:60
FunctionGetFirstRoleContentByTitle
(title string)
code/initialization/roles_load.go:69
MethodGetKeyFile
()
code/initialization/config.go:160
FunctionGetLarkClient
()
code/initialization/lark_client.go:13
MethodGetMode
(sessionId string)
code/services/sessionCache.go:41
MethodGetMode
(sessionId string)
code/services/sessionCache.go:49
MethodGetMsg
(sessionId string)
code/services/sessionCache.go:72
FunctionGetMsgCache
()
code/services/msgCache.go:32
MethodGetPicResolution
(sessionId string)
code/services/sessionCache.go:124
FunctionGetRoleByTitle
(title string)
code/initialization/roles_load.go:46
FunctionGetRoleList
()
code/initialization/roles_load.go:34
FunctionGetSessionCache
()
code/services/sessionCache.go:139
FunctionGetTitleListByTag
(tags string)
code/initialization/roles_load.go:55
FunctionHandler
(ctx context.Context, event *larkim.P2MessageReceiveV1)
code/handlers/init.go:31
MethodIfProcessed
(msgId string)
code/services/msgCache.go:19
FunctionInitHandlers
(gpt *openai.ChatGPT, config initialization.Config)
code/handlers/init.go:27
FunctionInitRoleList
InitRoleList 加载Prompt
code/initialization/roles_load.go:21
FunctionLoadLarkClient
(config Config)
code/initialization/lark_client.go:9
FunctionNewClearCardHandler
(cardMsg CardMsg, m MessageHandler)
code/handlers/card_clear_action.go:9
FunctionNewGpt3
(config *initialization.Config)
code/services/chatgpt/gpt3.go:27
FunctionNewLoadBalancer
(keys []string)
code/services/loadbalancer/loadbalancer.go:21
FunctionNewPicModeChangeHandler
(cardMsg CardMsg, m MessageHandler)
code/handlers/card_pic_action.go:19
FunctionNewPicResolutionHandler
(cardMsg CardMsg, m MessageHandler)
code/handlers/card_pic_action.go:9
FunctionNewPicTextMoreHandler
(cardMsg CardMsg, m MessageHandler)
code/handlers/card_pic_action.go:31
FunctionNewRoleCardHandler
(cardMsg CardMsg, m MessageHandler)
code/handlers/card_role_action.go:27
FunctionNewRoleTagCardHandler
(cardMsg CardMsg, m MessageHandler)
code/handlers/card_role_action.go:11
FunctionOggToWavByPath
(ogg string, wav string)
code/utils/audio/ogg.go:13
FunctionReadHandler
(ctx context.Context, event *larkim.P2MessageReadV1)
code/handlers/init.go:35
MethodRegisterAPI
(key string)
code/services/loadbalancer/loadbalancer.go:79
MethodSetMode
(sessionId string, mode SessionMode)
code/services/sessionCache.go:59
MethodSetMsg
(sessionId string, msg []openai.Messages)
code/services/sessionCache.go:81
MethodSetPicResolution
(sessionId string, resolution Resolution)
code/services/sessionCache.go:101
FunctionStartServer
(config Config, r *gin.Engine)
code/initialization/gin.go:64
MethodStreamChatWithHistory
()
code/services/chatgpt/gpt3.go:24
MethodTagProcessed
(msgId string)
code/services/msgCache.go:23
FunctionTestAudioToText
(t *testing.T)
code/services/openai/gpt3_test.go:41
FunctionTestCalcTokenLength
(t *testing.T)
code/services/chatgpt/tokenizer_test.go:5
FunctionTestChatGPT_GetBalance
余额接口已经被废弃
code/services/openai/gpt3_test.go:112
FunctionTestChatGPT_streamChat
(t *testing.T)
code/services/chatgpt/gpt3_test.go:12
FunctionTestCompletions
(t *testing.T)
code/services/openai/gpt3_test.go:9
FunctionTestEitherCutPrefix
(t *testing.T)
code/utils/strings_test.go:5
FunctionTestEitherTrimEqual
(t *testing.T)
code/utils/strings_test.go:49
FunctionTestGenerateOneImage
(t *testing.T)
code/services/openai/gpt3_test.go:27
FunctionTestVariateOneImage
(t *testing.T)
code/services/openai/gpt3_test.go:56
FunctionTestVariateOneImageWithJpg
(t *testing.T)
code/services/openai/gpt3_test.go:83
FunctionTrimEqual
trim space and equal
code/utils/strings.go:23
MethodWrite
(bytes []byte)
code/utils/logUtils.go:13
MethodcardHandler
(ctx context.Context, cardAction *larkcard.CardAction)
code/handlers/handler.go:34
FunctionjudgeCardType
(cardAction *larkcard.CardAction)
code/handlers/init.go:49
Functionmain
()
code/main.go:26
MethodmsgReceivedHandler
(ctx context.Context, event *larkim.P2MessageReceiveV1)
code/handlers/handler.go:52
FunctionreplyImage
(ctx context.Context, ImageKey *string, msgId *string)
code/handlers/msg.go:518
FunctionwithPicModeDoubleCheckBtn
(sessionID *string)
code/handlers/msg.go:338
← previous101–192 of 192, ranked by callers