Imgcli

AI 对话界面

改写提示词

提示词被重新斟酌:先逐字输入,光标选中其中一个短语并删除,再在原位输入更好的说法。

制作视频
类型
动画
时长
4.8s
分类
AI 对话界面
来源
Imgcli

安装

$ npx @imgcli/cli add prompt-rewrite

提示词被重新斟酌:先逐字输入,光标选中其中一个短语并删除,再在原位输入更好的说法。

安装

npx @imgcli/cli add prompt-rewrite

使用

import { PromptRewrite } from "@/components/imgcli/prompt-rewrite";

<PromptRewrite
  before="Write a"
  draft="long email"
  final="brief update"
  after="for the team"
/>;

默认示例:将撰写长邮件的要求改为简短的团队进展更新。以 30 fps 渲染 144 帧(4.8 秒)。

参数类型默认值说明
before
string"Write a"
draft
string"long email"The phrase that gets selected and replaced.
final
string"brief update"What replaces it.
after
string"for the team"
fontSize
number30Type size in pixels on a 540px-tall canvas.
fontFamily
string—A face from the Imgcli font list, or any loaded CSS font stack.
accentColor
string—
theme
Partial<ImgcliTheme>—
mode
"light" | "dark"—
speed
number1

许可

MIT 许可,可免费用于个人及商业项目,保留版权和许可声明。

Copyright (c) 2026 Ricky (Imgcli) <https://imgcli.com>

常见问题

如何在 Remotion 项目中使用改写提示词?

运行 npx @imgcli/cli add prompt-rewrite。CLI 会把组件源码复制到项目的 components/imgcli/ 目录并安装依赖,之后可以直接修改源码。

改写提示词能做什么?

提示词被重新斟酌:先逐字输入,光标选中其中一个短语并删除,再在原位输入更好的说法。

使用改写提示词前需要准备什么?

准备 Node.js 20.19 或更高版本,以及一个 Remotion 项目。新项目可以用 npx create-video@latest 创建。免费组件采用 MIT 许可证。