Skip to content

Commit 1611144

Browse files
committed
add debug logging for GPT request
1 parent 9f826bb commit 1611144

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

soc-ai/gpt/client.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,9 @@ func (c *GPTClient) Request(alert schema.AlertGPTDetails) (string, error) {
5858
},
5959
}
6060

61+
// Debug log
62+
utils.Logger.Info("GPT Request: %s", req.Messages[0].Content)
63+
6164
requestJson, error := json.Marshal(req)
6265
if error != nil {
6366
return "", fmt.Errorf("error marshalling request: %v", error)

0 commit comments

Comments
 (0)