GitHub Pull Request AI Summarizer

342120f3-ce8a-4d01-a95c-d23895109f9d

Latency
778ms
Cost
$0.0003
Tokens
410
Status
success
gemini-2.5-flash

Workflow Graph

Trace

[
  {
    "data": {
      "nodeType": "manualTrigger"
    },
    "event": "node_start",
    "nodeId": "t",
    "timestamp": 1783470703611
  },
  {
    "data": {
      "initialData": {
        "diff": "diff --git a/src/utils.js b/src/utils.js\nindex 1234567..abcdef0 100644\n--- a/src/utils.js\n+++ b/src/utils.js\n@@ -1,5 +1,8 @@\n // Helper function to format dates\n export const formatDate = (date) => {\n   const options = { year: 'numeric', month: 'long', day: 'numeric' };\n-  return new Date(date).toLocaleDateString(undefined, options);\n+  if (!date) {\n+    return ''; // Handle null or undefined dates gracefully\n+  }\n+  return new Date(date).toLocaleDateString(undefined, options);\n };\n\n // Function to calculate the difference between two dates\n@@ -8,3 +11,7 @@\n export const dateDifference = (date1, date2) => {\n   const diffTime = Math.abs(new Date(date2) - new Date(date1));\n   return Math.ceil(diffTime / (1000 * 60 * 60 * 24));\n+};\n+\n+// New function to validate email addresses\n+export const isValidEmail = (email) => {\n+  const emailRegex = /^[\\w-\\.]+@([\\w-]+\\.)+[\\w-]{2,4}$/;\n+  return emailRegex.test(email);\n };\n"
      }
    },
    "event": "triggered",
    "nodeId": "manualTrigger",
    "timestamp": 1783470703611
  },
  {
    "data": {
      "status": "ok",
      "nodeType": "manualTrigger"
    },
    "event": "node_end",
    "nodeId": "t",
    "timestamp": 1783470703611
  },
  {
    "data": {
      "nodeType": "llm"
    },
    "event": "node_start",
    "nodeId": "l",
    "timestamp": 1783470703617
  },
  {
    "data": {
      "messages": 2,
      "maxTokens": 400
    },
    "event": "calling openai/gpt-4o-mini",
    "nodeId": "llm",
    "timestamp": 1783470703617
  },
  {
    "data": {
      "model": "gpt-4o-mini",
      "provider": "openai"
    },
    "event": "llm_call",
    "nodeId": "_context",
    "timestamp": 1783470703617
  },
  {
    "data": {
      "model": "gemini-2.5-flash",
      "costUsd": 0.00028139999999999996,
      "provider": "openai",
      "latencyMs": 771,
      "promptTokens": 338,
      "completionTokens": 72
    },
    "event": "llm_result",
    "nodeId": "_context",
    "timestamp": 1783470704389
  },
  {
    "data": {
      "status": "ok",
      "nodeType": "llm"
    },
    "event": "node_end",
    "nodeId": "l",
    "timestamp": 1783470704389
  }
]