TokenYep.COM -AI大模型中转站支持一个 Key 调用近 600+ 海内外模型,限时特价模型低至 1 折,欢迎上岸!
| 来源 | 可选——通过 hermes skills install official/web-development/page-agent 安装 |
| 路径 | optional-skills/web-development/page-agent |
| 版本 | 1.0.0 |
| 作者 | Hermes Agent |
| 许可证 | MIT |
| 平台 | linux, macos, windows |
| 标签 | web, javascript, agent, browser, gui, alibaba, embed, copilot, saas |
/v1/chat/completions 的服务| Provider | baseURL | model |
|---|---|---|
| Qwen / DashScope | https://dashscope.aliyuncs.com/compatible-mode/v1 | qwen3.5-plus |
| OpenAI | https://api.openai.com/v1 | gpt-4o-mini |
| Ollama(本地) | http://localhost:11434/v1 | qwen3:14b |
| OpenRouter | https://openrouter.ai/api/v1 | anthropic/claude-sonnet-4.6 |
new PageAgent({...})):model、baseURL、apiKey — LLM 连接配置language — UI 语言(en-US、zh-CN 等)apiKey 放在客户端代码中——通过你的后端代理 LLM 调用,并将 baseURL 指向你的代理。演示 CDN 之所以存在,是因为阿里巴巴为评估目的运行了该代理。.env 文件,配置 LLM 端点。示例:LLM_MODEL_NAME=gpt-4o-mini
LLM_API_KEY=sk-...
LLM_BASE_URL=https://api.openai.com/v1LLM_BASE_URL=http://localhost:11434/v1
LLM_API_KEY=NA
LLM_MODEL_NAME=qwen3:14bnpm run dev:demo,在任意页面点击书签脚本,本地构建即注入页面。保存后自动重新构建。.env 中的 LLM_API_KEY 会被内联到 IIFE bundle 中。不要分享该 bundle,不要提交它,不要将 URL 粘贴到 Slack。(已验证:对公开开发 bundle 执行 grep 会返回 .env 中的字面值。)