Skip to content

Commit

Permalink
Output audit log fix (#148)
Browse files Browse the repository at this point in the history
  • Loading branch information
pigri authored Sep 12, 2024
2 parents 7fdd981 + 9747e8f commit 68a73b6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
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
2 changes: 1 addition & 1 deletion rules/rule-service/rule_service/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ async def execute_plugin(rule: Rule):
logger.debug(f"Rule engine result: match={match}")

response = {"match": match, "inspection": plugin_result}
logger.debug(f"API response: {response}")
logger.debug(f"Plugin Name: {plugin_name} API response: {response}")

return response

Expand Down

0 comments on commit 68a73b6

Please sign in to comment.