Wiring Page Assist to Ollama and a Cloud Gateway: Setup, Four Workflows, and the Gotchas
说明与用途
Page Assist 通过侧边栏整合复制粘贴,简化 LLM 交互。配置本地 Ollama 或云端 AIHubMix,选择嵌入模型,并使用四个工作流程,可快速完成长页面摘要、文本重写、知识库查询和页面自动化操作。
问题
Copying text from a web page into a chat interface is tedious; Page Assist consolidates this into a sidebar or full‑tab UI, but requires local or cloud model configuration and embedding setup.
结果
Page Assist becomes a fully functional LLM‑powered assistant with local or cloud models, supporting long‑page summarization, text rewriting, knowledge base queries, and automated page actions.
工作流
- Start Ollama on default port and open Page Assist
- If 403 CORS error, set OLLAMA_ORIGINS="*" or enable custom origin URL in settings
- Add AIHubMix from preset list: Settings → OpenAI Compatible API → Add Provider, select AIHubMix, paste API key, save
- Select chat models in Model List dialog, tick chat models, set type to Chat Model, save
- Choose an embedding model: Settings → RAG Settings → Embedding Model, tick an embedding model such as gemini-embedding-001, set type to Embedding Model, save
- Use the four workflows: 1) Chat with Website (choose embedding or full context), 2) Copilot right‑click prompts (custom templates), 3) Knowledge Base (add PDFs, docs, etc.), 4) Page Action/MCP (configure remote server or local MCP)
证据
Page Assist collapses that loop into a sidebar (Ctrl+Shift+Y) and a full-tab web UI (Ctrl+Shift+L).
If you get a 403 on send, it's CORS. Page Assist rewrites headers automatically only for http://127.0.0.1:* and http://localhost:*.
AIHubMix returns chat and embedding models in the same /models list.
- 记录日期: 2026-10-08T03:40:58.267Z