docs: add gemini jsonl batch usage

This commit is contained in:
tukuaiai 2025-12-23 18:41:17 +08:00
parent 9ec111b74c
commit 7a3744b366
2 changed files with 13 additions and 0 deletions

View File

@ -158,6 +158,19 @@ python3 main.py --select "prompt_docs/your_docs_folder"
</details> </details>
<details>
<summary><b>Gemini 无头Markdown → JSONL 批处理</b></summary>
```bash
# 将目录中的 .md 提示词批量转为 JSONL默认输入 2/,输出 2/prompts.jsonl
python3 scripts/gemini_jsonl_batch.py --input 2 --output 2/prompts.jsonl --model gemini-2.5-flash
```
- 脚本内置固定系统提示词,调用 `gemini --allowed-tools '' --output-format text` 确保纯文本 JSONL。
- 需要本地已登录的 Gemini CLI如需代理请自行设置 `http_proxy/https_proxy` 环境变量。
- 可用 `-v` 查看逐文件处理日志,`--gemini-cmd` 自定义 CLI 可执行路径。
</details>
--- ---
<details> <details>

Binary file not shown.