MCPcopy Create free account
hub / github.com/APIParkLab/APIPark / genAIKey

Function genAIKey

app/ai-event-handler/nsq.go:82–85  ·  view source on GitHub ↗
(key string, provider string)

Source from the content-addressed store, hash-verified

80}
81
82func genAIKey(key string, provider string) string {
83 keys := strings.Split(key, "@")
84 return strings.TrimPrefix(keys[0], fmt.Sprintf("%s-", provider))
85}
86
87// HandleMessage 处理从 NSQ 读取的消息
88func (h *NSQHandler) HandleMessage(message *nsq.Message) error {

Callers 1

HandleMessageMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected