xLog icon indicating copy to clipboard operation
xLog copied to clipboard

Update page.server.ts, Optimize the prompt words

Open VrianCao opened this issue 1 year ago • 2 comments

Optimize the prompt words so that the AI ​​summary skips the Front Matter part

WHAT

copilot:summary

copilot:poem

WHY

The original prompt might mistakenly identify the time in the Front Matter as part of the article content, such as in my article https://x.vriancao.top/a-simple-cf-workers-ai-example, where AI incorrectly recognized the time "May 1, 2024, 18:00:00" in the Front Matter as the time when Cloudflare launched Workers AI.

HOW

copilot:walkthrough

CLAIM REWARDS

https://x.vriancao.top/ Discord ID:vriancao

For first-time contributors, please leave your xLog address and Discord ID below to claim your rewards.

VrianCao avatar Aug 03 '24 05:08 VrianCao

The latest updates on your projects. Learn more about Vercel for Git ↗︎

1 Skipped Deployment
Name Status Preview Comments Updated (UTC)
xlog ⬜️ Ignored (Inspect) Visit Preview Sep 14, 2024 11:33am

vercel[bot] avatar Aug 03 '24 05:08 vercel[bot]

📦 Next.js Bundle Analysis for xlog

This analysis was generated by the Next.js Bundle Analysis action. 🤖

🎉 Global Bundle Size Decreased

Page Size (compressed)
global 90.5 KB (-7 B)
Details

The global bundle is the javascript bundle that loads alongside every page. It is in its own category because its impact is much higher - an increase to its size means that every page on your website loads slower, and a decrease means every page loads faster.

Any third party scripts you have added directly to your app using the <script> tag are not accounted for in this analysis

If you want further insight into what is behind the changes, give @next/bundle-analyzer a try!

github-actions[bot] avatar Aug 03 '24 05:08 github-actions[bot]

What if we do not have a front matter in the content?

hyoban avatar Sep 02 '24 12:09 hyoban

What if we do not have a front matter in the content?

Here we are

VrianCao avatar Sep 14 '24 12:09 VrianCao

Thanks, you can observe the effect in https://xlog.page after the deployment is completed

hyoban avatar Sep 15 '24 00:09 hyoban