Agent-Reach/agent_reach/guides/setup-groq.md
Panniantong 5c62a21f32 rename: Agent Eyes → Agent Reach
全局重命名:
- 包名: agent_eyes → agent_reach
- CLI: agent-eyes → agent-reach
- 类名: AgentEyes → AgentReach
- 显示名: Agent Eyes → Agent Reach
- GitHub: Panniantong/agent-eyes → Panniantong/Agent-Reach

所有 36 个测试通过,CLI/doctor/read/search 全部正常。
2026-02-24 10:25:46 +01:00

1.2 KiB
Raw Permalink Blame History

Groq Whisper 配置指南

功能说明

当 YouTube/Bilibili 视频没有字幕时,用 Groq 的 Whisper API 进行语音转文字。Groq 提供免费额度。

Agent 可自动完成的步骤

  1. 检查是否已配置:
agent-reach doctor | grep -i "groq\|whisper"
  1. 如果用户提供了 key写入配置
from agent_reach.config import Config
c = Config()
c.set("groq_api_key", "用户提供的KEY")
  1. 测试(可选):
curl -s https://api.groq.com/openai/v1/models \
  -H "Authorization: Bearer 用户提供的KEY" \
  -o /dev/null -w "%{http_code}"

返回 200 = 可用

需要用户手动做的步骤

请告诉用户:

视频语音转文字需要一个 Groq API Key免费

步骤:

  1. 打开 https://console.groq.com
  2. 用 Google 账号或邮箱注册
  3. 点击左侧 "API Keys"
  4. 点击 "Create API Key"
  5. 复制生成的 Key发给我

Groq 提供免费额度,日常使用完全够用。

Agent 收到 key 后的操作

  1. 写入配置:config.set("groq_api_key", key)
  2. 测试 API 可用性
  3. 反馈:" 语音转文字已开启!现在遇到没有字幕的视频,我也能帮你提取内容了。"