Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/ConnectAI-E/Feishu-OpenAI-Stream-Chatbot
/ functions
Functions
192 in github.com/ConnectAI-E/Feishu-OpenAI-Stream-Chatbot
⨍
Functions
192
◇
Types & classes
55
↓ 1 callers
Function
sendOnProcessCard
(ctx context.Context, sessionId *string, msgId *string)
code/handlers/msg.go:656
↓ 1 callers
Function
startHTTPSServer
(config Config, r *gin.Engine)
code/initialization/gin.go:45
↓ 1 callers
Function
startHTTPServer
(config Config, r *gin.Engine)
code/initialization/gin.go:37
↓ 1 callers
Function
updateTextCard
(ctx context.Context, msg string, msgId *string)
code/handlers/msg.go:667
↓ 1 callers
Function
uploadImage
(base64Str string)
code/handlers/msg.go:490
↓ 1 callers
Function
withClearDoubleCheckBtn
清除卡片按钮
code/handlers/msg.go:314
↓ 1 callers
Function
withImageDiv
(imageKey string)
code/handlers/msg.go:239
↓ 1 callers
Function
withMdAndExtraBtn
withMdAndExtraBtn 用于生成带有额外按钮的消息体
code/handlers/msg.go:252
↓ 1 callers
Function
withOneBtn
(btn *larkcard.MessageCardEmbedButton)
code/handlers/msg.go:363
↓ 1 callers
Function
withPicResolutionBtn
新建对话按钮
code/handlers/msg.go:374
↓ 1 callers
Function
withRoleBtn
(sessionID *string, titles ...string)
code/handlers/msg.go:430
↓ 1 callers
Function
withRoleTagsBtn
(sessionID *string, tags ...string)
code/handlers/msg.go:403
Function
AzureModeCheck
(a *ActionInfo)
code/handlers/handler.go:130
Function
CalcTokenFromMsgList
(msgs []openai.ChatCompletionMessage)
code/services/chatgpt/tokenizer.go:14
Function
CardHandler
()
code/handlers/init.go:41
Function
CheckAllowAccessThenIncrement
* 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
Function
CheckChatCompletionMessages
(messages []openai.ChatCompletionMessage)
code/services/chatgpt/check.go:14
Method
Clear
(sessionId string)
code/services/sessionCache.go:44
Method
Clear
(sessionId string)
code/services/sessionCache.go:134
Method
Clear
(userId string)
code/services/msgCache.go:27
Function
CloseLogger
(logger *lumberjack.Logger)
code/utils/logUtils.go:17
Function
ConvertJpegToPNG
(jpgPath string)
code/services/openai/picture.go:234
Function
CutPrefix
(s, prefix string)
code/utils/strings.go:5
Method
Execute
(a *ActionInfo)
code/handlers/event_common_action.go:37
Method
Execute
(a *ActionInfo)
code/handlers/event_common_action.go:48
Method
Execute
(a *ActionInfo)
code/handlers/event_common_action.go:66
Method
Execute
(a *ActionInfo)
code/handlers/event_common_action.go:79
Method
Execute
(a *ActionInfo)
code/handlers/event_common_action.go:92
Method
Execute
(a *ActionInfo)
code/handlers/event_common_action.go:110
Method
Execute
(a *ActionInfo)
code/handlers/event_common_action.go:122
Method
Execute
(a *ActionInfo)
code/handlers/event_common_action.go:139
Method
Execute
(a *ActionInfo)
code/handlers/event_msg_action.go:20
Method
GenerateOneImageWithDefaultSize
( prompt string)
code/services/openai/picture.go:68
Method
GetAPIs
()
code/services/loadbalancer/loadbalancer.go:99
Function
GetAccessCountMap
()
code/services/accesscontrol/access_control.go:64
Function
GetAllUniqueTags
()
code/initialization/roles_load.go:37
Method
GetCertFile
()
code/initialization/config.go:149
Function
GetConfig
* GetConfig will call LoadConfig once and return a global singleton, you should always use this function to get config */
code/initialization/config.go:51
Function
GetCurrentDateAsString
()
code/utils/commonUtils.go:7
Function
GetCurrentDateFlag
()
code/services/accesscontrol/access_control.go:60
Function
GetFirstRoleContentByTitle
(title string)
code/initialization/roles_load.go:69
Method
GetKeyFile
()
code/initialization/config.go:160
Function
GetLarkClient
()
code/initialization/lark_client.go:13
Method
GetMode
(sessionId string)
code/services/sessionCache.go:41
Method
GetMode
(sessionId string)
code/services/sessionCache.go:49
Method
GetMsg
(sessionId string)
code/services/sessionCache.go:72
Function
GetMsgCache
()
code/services/msgCache.go:32
Method
GetPicResolution
(sessionId string)
code/services/sessionCache.go:124
Function
GetRoleByTitle
(title string)
code/initialization/roles_load.go:46
Function
GetRoleList
()
code/initialization/roles_load.go:34
Function
GetSessionCache
()
code/services/sessionCache.go:139
Function
GetTitleListByTag
(tags string)
code/initialization/roles_load.go:55
Function
Handler
(ctx context.Context, event *larkim.P2MessageReceiveV1)
code/handlers/init.go:31
Method
IfProcessed
(msgId string)
code/services/msgCache.go:19
Function
InitHandlers
(gpt *openai.ChatGPT, config initialization.Config)
code/handlers/init.go:27
Function
InitRoleList
InitRoleList 加载Prompt
code/initialization/roles_load.go:21
Function
LoadLarkClient
(config Config)
code/initialization/lark_client.go:9
Function
NewClearCardHandler
(cardMsg CardMsg, m MessageHandler)
code/handlers/card_clear_action.go:9
Function
NewGpt3
(config *initialization.Config)
code/services/chatgpt/gpt3.go:27
Function
NewLoadBalancer
(keys []string)
code/services/loadbalancer/loadbalancer.go:21
Function
NewPicModeChangeHandler
(cardMsg CardMsg, m MessageHandler)
code/handlers/card_pic_action.go:19
Function
NewPicResolutionHandler
(cardMsg CardMsg, m MessageHandler)
code/handlers/card_pic_action.go:9
Function
NewPicTextMoreHandler
(cardMsg CardMsg, m MessageHandler)
code/handlers/card_pic_action.go:31
Function
NewRoleCardHandler
(cardMsg CardMsg, m MessageHandler)
code/handlers/card_role_action.go:27
Function
NewRoleTagCardHandler
(cardMsg CardMsg, m MessageHandler)
code/handlers/card_role_action.go:11
Function
OggToWavByPath
(ogg string, wav string)
code/utils/audio/ogg.go:13
Function
ReadHandler
(ctx context.Context, event *larkim.P2MessageReadV1)
code/handlers/init.go:35
Method
RegisterAPI
(key string)
code/services/loadbalancer/loadbalancer.go:79
Method
SetMode
(sessionId string, mode SessionMode)
code/services/sessionCache.go:59
Method
SetMsg
(sessionId string, msg []openai.Messages)
code/services/sessionCache.go:81
Method
SetPicResolution
(sessionId string, resolution Resolution)
code/services/sessionCache.go:101
Function
StartServer
(config Config, r *gin.Engine)
code/initialization/gin.go:64
Method
StreamChatWithHistory
()
code/services/chatgpt/gpt3.go:24
Method
TagProcessed
(msgId string)
code/services/msgCache.go:23
Function
TestAudioToText
(t *testing.T)
code/services/openai/gpt3_test.go:41
Function
TestCalcTokenLength
(t *testing.T)
code/services/chatgpt/tokenizer_test.go:5
Function
TestChatGPT_GetBalance
余额接口已经被废弃
code/services/openai/gpt3_test.go:112
Function
TestChatGPT_streamChat
(t *testing.T)
code/services/chatgpt/gpt3_test.go:12
Function
TestCompletions
(t *testing.T)
code/services/openai/gpt3_test.go:9
Function
TestEitherCutPrefix
(t *testing.T)
code/utils/strings_test.go:5
Function
TestEitherTrimEqual
(t *testing.T)
code/utils/strings_test.go:49
Function
TestGenerateOneImage
(t *testing.T)
code/services/openai/gpt3_test.go:27
Function
TestVariateOneImage
(t *testing.T)
code/services/openai/gpt3_test.go:56
Function
TestVariateOneImageWithJpg
(t *testing.T)
code/services/openai/gpt3_test.go:83
Function
TrimEqual
trim space and equal
code/utils/strings.go:23
Method
Write
(bytes []byte)
code/utils/logUtils.go:13
Method
cardHandler
(ctx context.Context, cardAction *larkcard.CardAction)
code/handlers/handler.go:34
Function
judgeCardType
(cardAction *larkcard.CardAction)
code/handlers/init.go:49
Function
main
()
code/main.go:26
Method
msgReceivedHandler
(ctx context.Context, event *larkim.P2MessageReceiveV1)
code/handlers/handler.go:52
Function
replyImage
(ctx context.Context, ImageKey *string, msgId *string)
code/handlers/msg.go:518
Function
withPicModeDoubleCheckBtn
(sessionID *string)
code/handlers/msg.go:338
← previous
101–192 of 192, ranked by callers