grapedge-grapi

内容来源:README.md(说明文档) · 原始地址 · 查看安装指南

原始内容

grapi

grapi 是我个人的 pi 扩展。

安装

pi install npm:@grapedge/grapi

配置

联网功能依赖 Tavily 的 API,图像生成依赖 fal.ai 的 API,需要设置环境变量:

export TAVILY_API_KEY="your-api-key"
export FAL_KEY="your-fal-key"

工具

web_search

联网搜索,返回标题、链接和摘要。

参数:

  • query:搜索词
  • limit:返回结果数量,1–10,默认 5

web_extract

读取单个网页的正文内容,返回 Markdown。

参数:

  • url:网页地址

image_generate

根据文本提示生成图片,或基于参考图片进行编辑。

参数:

  • prompt:图片描述
  • aspect_ratio:输出比例预设,可选值: squaresquare_hdlandscape_4_3landscape_16_9portrait_4_3portrait_16_9;默认 landscape_4_3
  • reference_image_paths:参考图片的本地路径列表(用于图生图编辑)

Todo

  • image_generate
  • subagent
  • /goal
  • ...