MCPcopy
hub / github.com/Yvesssn/DetectDee / ChatUserLabel

Function ChatUserLabel

utils/chatUserLabel.go:13–29  ·  view source on GitHub ↗
(token, urls string)

Source from the content-addressed store, hash-verified

11)
12
13func ChatUserLabel(token, urls string) (openai.ChatCompletionResponse, error) {
14 client := openai.NewClient(token)
15 resp, err := client.CreateChatCompletion(
16 context.Background(),
17 openai.ChatCompletionRequest{
18 Model: openai.GPT3Dot5Turbo,
19 Messages: []openai.ChatCompletionMessage{
20 {
21 Role: openai.ChatMessageRoleUser,
22 Content: fmt.Sprintf(askUserLabel, urls),
23 },
24 },
25 },
26 )
27
28 return resp, err
29}

Callers 1

detectFunction · 0.92

Calls

no outgoing calls

Tested by

no test coverage detected