384 - 《用 GPT-4 写前端文章》
发布于 2023年12月13日
尝试了下,做下记录。5 分钟即可完成一篇。感觉如果没人和我说这是 AI 写的,可能不会轻易分辩出来。有兴趣的可以往社区上发发试试。
步骤如下。
0、确定主题,本文以新出的原子化 CSS in JS 方案 StyleX 为例。
1、安装 gpt-crawler 。
git clone git@github.com:BuilderIO/gpt-crawler.git && cd gpt-crawler && npm i
2、修改 config.ts,配置如下。
import { Config } from "./src/config";
export const defaultConfig: Config = {
url: "https://stylexjs.com/",
match: "https://stylexjs.com/docs/**",
maxPagesToCrawl: 50,
outputFileName: