报告日期 / Report Date: 2026-03-07 状态 / Status: 基础框架已完成并成功通过基本测试 / Basic framework completed and passed basic tests
- 项目概述 / Project Overview
- 完成的工作 / Completed Work
- 当前限制和待办事项 / Current Limitations and TODOs
- 如何开始 / Getting Started
- 项目结构 / Project Structure
- 技术栈总结 / Tech Stack Summary
- 下一步行动 / Next Steps
AskOnce 实现 "问一次,得到所有模型的答案" 的核心价值:
AskOnce delivers the core value of "Ask once, get all models' answers":
| 功能 / Feature | 描述 / Description | 状态 / Status |
|---|---|---|
| 并发查询 / Concurrent Query | 同时向多个 AI 模型发送问题 / Send questions to multiple AI models simultaneously | ✅ 已实现 (DeepSeek API 测试成功) / Implemented |
| 流式响应 / Streaming Response | 实时显示各模型的生成内容 / Real-time display of model outputs | ✅ 代码实现, 待前端测试 / Code ready, pending frontend test |
| 多视图展示 / Multi-view Display | 卡片、并排等展示模式 / Card, side-by-side display modes | ✅ 代码实现, 待前端 UI 渲染 / Code ready |
| AI 评审 / AI Judge | 自动分析对比所有回答 / Automatically analyze and compare all responses | ✅ 代码实现, 待 API Key / Code ready |
| 浏览器扩展 / Browser Extension | Chrome 侧边栏快速查询 / Quick query via Chrome sidebar | ✅ 文件创建,待加载测试 / Files created |
| 前端 UI / Frontend UI | 成功运行并展示模型选择界面 / Successfully running with model selection UI | ✅ 已验证 / Verified |
| 模型 / Model | 访问方式 / Access Method | 需要 API Key / Requires API Key |
|---|---|---|
| GPT-4o | API | ✅ 必需 / Required |
| Claude Sonnet 4 | API | ✅ 必需 / Required |
| DeepSeek V3 | API | ✅ 必需 / Required |
| Gemini | OpenRouter | ✅ 必需 / Required |
| Llama | OpenRouter | ✅ 必需 / Required |
- ✅ 完成了 Web 前端 (
frontend/) 框架 (React + Zustand + TailwindCSS) / Completed Web frontend framework - ✅ 完成了 Node.js 后端 (
backend/node/) 核心路由和 API 逻辑 / Completed Node.js backend core routes and API logic - ✅ 实现了 Python 后端 (
backend/python/) 作为 FreeAskInternet 模式的参考实现 / Implemented Python backend as reference - ✅ 创建了浏览器扩展 (
extension/) 的基本文件结构 (Manifest V3) / Created browser extension basic structure - ✅ 编写了所有核心文档 (
docs/) / Wrote all core documentation
- ✅ 实现了统一的模型接口 (
providers.ts/.py) / Implemented unified model interface - ✅ 实现了查询编排器,支持并发和超时 / Implemented query orchestrator with concurrency and timeout support
- ✅ 查询 API / Query API: 支持同步和流式查询 / Supports synchronous and streaming queries
- ✅ 评审 API / Judge API: 支持 AI 评审逻辑 / Supports AI judging logic
- ✅ 模型列表 / Model List: API 可返回当前支持的模型(共 14 个)/ API returns 14 supported models
- ✅ 完成了研究报告、架构文档、部署指南等文档 / Completed research report, architecture doc, deployment guide
- ✅ 修复了所有文档中的目录链接跳转问题 / Fixed all table of contents link issues
- ✅ 成功在本地运行了后端(Node.js/Express)和前端(React/Vite)/ Successfully ran backend and frontend locally
- ✅ 使用示例 Key 测试 DeepSeek API 成功 / Successfully tested DeepSeek API with sample key
| 事项 / Item | 优先级 / Priority | 说明 / Description |
|---|---|---|
| 配置 API Key / Configure API Key | 🔴 高 / High | 必须配置真实的 OpenAI/Anthropic Key 才能使用更多模型 / Must configure real keys for more models |
| 结果展示 / Result Display | 🟡 中 / Medium | 前端 ResultsGrid 需实现结果渲染逻辑 / Frontend needs result rendering logic |
| 流式响应 / Streaming Response | 🟡 中 / Medium | 前端需集成 SSE 监听 / Frontend needs SSE integration |
| 浏览器扩展加载 / Extension Loading | 🟡 中 / Medium | 需要将代码适配到扩展逻辑,并加载/测试 / Need to adapt code for extension and test |
| 零成本模式 / Zero-cost Mode | 🟡 中 / Medium | 需部署 openclaw-zero-token 项目,参考: https://github.com/linuxhsj/openclaw-zero-token / Need to deploy openclaw-zero-token project, see: https://github.com/linuxhsj/openclaw-zero-token |
# 1. 配置 API Key (使用真实 Key) / Configure API Key (use real key)
cp .env.example .env
nano .env # 填入 API Key / Fill in API Key
# 2. 安装依赖 / Install dependencies
cd frontend && npm install
cd ../backend/node && npm install
# 3. 启动服务 (两个终端) / Start services (two terminals)
# 终端1: 后端 / Terminal 1: Backend
cd backend/node && npm run dev
# 终端2: 前端 / Terminal 2: Frontend
cd frontend && npm run dev- 前端应用 / Frontend App: http://localhost:3000 (或3001/3002,取决于端口占用情况 / or 3001/3002 depending on port availability)
- 后端 API / Backend API: http://localhost:8000
askonce/
├── backend/ # 后端服务 / Backend services
│ ├── python/ # Python FastAPI (参考/FreeAskInternet模式) / Reference implementation
│ └── node/ # Node.js Express (核心API) / Core API
├── frontend/ # Web 前端 (React) / Web frontend
├── extension/ # 浏览器扩展 / Browser extension
├── shared/ # 共享类型 / Shared types
├── docs/ # 所有文档 / All documentation
├── .env.example
├── docker-compose.yml
└── README.md # 项目说明 / Project description
| 层级 / Layer | 技术栈 / Tech Stack |
|---|---|
| 前端 / Frontend | React + TypeScript + TailwindCSS + Zustand |
| 后端 (核心) / Backend (Core) | Node.js + Express + TypeScript + OpenAI SDK |
| 后端 (参考) / Backend (Reference) | Python + FastAPI |
| 部署 / Deployment | Docker Compose |
- 获取并配置 / Get and configure
OPENAI_API_KEY或ANTHROPIC_API_KEY到.env文件 / to.envfile. - 访问前端地址 / Visit frontend at http://localhost:3000,**测试流式输出 / test streaming output**和 AI 评审功能 / AI judging feature.
- 加载 / Load
extension/目录,测试浏览器扩展的功能 / directory, test browser extension functionality.
报告版本 / Report Version: v1.3 更新日期 / Updated: 2026-03-07 作者 / Author: SeekSage