Skip to content

Commit

Permalink
fix: Audit log output type fix
Browse files Browse the repository at this point in the history
  • Loading branch information
pigri committed Sep 12, 2024
1 parent 6593661 commit 9747e8f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/openai/handlers.go
Original file line number Diff line number Diff line change
Expand Up @@ -590,7 +590,7 @@ func performResponseAuditLogging(r *http.Request, resp openai.ChatCompletionResp
return
}

auditLog := lib.AuditLogs(string(responseJSON), "openai_chat_completion", apiKeyId, "input", productID, r)
auditLog := lib.AuditLogs(string(responseJSON), "openai_chat_completion", apiKeyId, "output", productID, r)

if auditLog == nil {
log.Printf("Failed to create audit log")
Expand Down

0 comments on commit 9747e8f

Please sign in to comment.