Show HN: Runprompt – run .prompt files from the command line
3 months ago
- #Python
- #AI
- #Automation
- 一个名为'runprompt'的单文件Python脚本,用于运行.prompt文件
- 快速入门指南包括下载脚本、设置API密钥和运行示例.prompt文件
- 支持在提示之间传输结构化JSON数据以实现链式操作
- 允许通过命令行覆盖frontmatter值和模型规格
- 支持包括Anthropic、OpenAI、Google AI和OpenRouter在内的多家AI服务提供商
- 可通过环境变量设置跨多次运行的默认配置
- 提供详细模式(-v)用于调试请求/响应细节
- OpenRouter可通过单一API密钥访问多种AI模型