Skip to content

Commit

Permalink
Add log
Browse files Browse the repository at this point in the history
  • Loading branch information
Rindrics committed Oct 28, 2024
1 parent 0bab959 commit 0f9ba8a
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ export async function generateArtifactStream(
},
onFinish: async (result) => {
console.log("onFinish");
console.log("runtime:", process.env.VERCEL_RUNTIME);
const meter = metrics.getMeter("OpenAI");
const tokenCounter = meter.createCounter("token_consumed", {
description: "Number of OpenAI API tokens consumed by each request",
Expand Down

0 comments on commit 0f9ba8a

Please sign in to comment.