Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -228,6 +228,14 @@ frontend-workflow/node_modules/
frontend-workflow/dist/
frontend-workflow/build/
frontend-workflow/.vite/
frontend_en/node_modules/
frontend_en/dist/
frontend_en/build/
frontend_en/.vite/
frontend_zh/node_modules/
frontend_zh/dist/
frontend_zh/build/
frontend_zh/.vite/
*.local

# Logs
Expand Down
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@
### 1. 克隆与安装

```bash
git clone https://github.com/your-org/opennotebookLM.git
git clone https://github.com/OpenDCAI/opennotebookLM.git
cd opennotebookLM

# 创建虚拟环境(推荐 Conda)
Expand Down Expand Up @@ -168,13 +168,13 @@ SUPABASE_ANON_KEY=your_supabase_anon_key
### 3. 启动后端

```bash
uvicorn fastapi_app.main:app --host 0.0.0.0 --port 8000 --reload
uvicorn fastapi_app.main:app --host 0.0.0.0 --port 8211 --reload
```

后端启动时会自动拉起本地 Embedding 服务(Octen-Embedding-0.6B,端口 17997),首次启动会下载模型。如需关闭本地 Embedding,设置 `USE_LOCAL_EMBEDDING=0`。

- 健康检查:http://localhost:8000/health
- API 文档:http://localhost:8000/docs
- 健康检查:http://localhost:8211/health
- API 文档:http://localhost:8211/docs

### 4. 启动前端

Expand Down
8 changes: 4 additions & 4 deletions README_EN.md
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@
### 1. Clone & Install

```bash
git clone https://github.com/your-org/opennotebookLM.git
git clone https://github.com/OpenDCAI/opennotebookLM.git
cd opennotebookLM

# Create virtual environment (Conda recommended)
Expand Down Expand Up @@ -168,13 +168,13 @@ SUPABASE_ANON_KEY=your_supabase_anon_key
### 3. Start Backend

```bash
uvicorn fastapi_app.main:app --host 0.0.0.0 --port 8000 --reload
uvicorn fastapi_app.main:app --host 0.0.0.0 --port 8211 --reload
```

On startup, the backend automatically launches a local embedding service (Octen-Embedding-0.6B on port 17997). The model is downloaded on first run. To disable local embedding, set `USE_LOCAL_EMBEDDING=0`.

- Health check: http://localhost:8000/health
- API docs: http://localhost:8000/docs
- Health check: http://localhost:8211/health
- API docs: http://localhost:8211/docs

### 4. Start Frontend

Expand Down
2 changes: 1 addition & 1 deletion frontend_en/INTEGRATION_GUIDE.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@

- **`vite.config.ts`** - Vite 配置,包含后端代理
- 端口: 3001
- 后端代理: `http://localhost:8210`
- 后端代理: `http://localhost:8211`

- **`src/config/api.ts`** - API 配置文件
- API Key 管理
Expand Down
14 changes: 7 additions & 7 deletions frontend_zh/src/pages/NotebookView.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -221,13 +221,13 @@ const NotebookView = ({ notebook, onBack }: { notebook: any, onBack: () => void
const [studioSettingsTool, setStudioSettingsTool] = useState<StudioToolId | null>(null);
const STORAGE_STUDIO_CONFIG = `kb_studio_config_${effectiveUser?.id || 'default'}`;
const defaultByTool: Record<StudioToolId, Record<string, string>> = {
ppt: { llmModel: 'deepseek-v3.2', genFigModel: 'gemini-2.5-flash-image', stylePreset: 'modern', stylePrompt: '', language: 'zh', page_count: '10' },
mindmap: { llmModel: 'deepseek-v3.2', mindmapStyle: 'default' },
drawio: { llmModel: 'deepseek-v3.2', diagramType: 'auto', diagramStyle: 'default', language: 'zh' },
flashcard: { llmModel: 'deepseek-v3.2', language: 'zh', cardCount: '20' },
quiz: { llmModel: 'deepseek-v3.2', language: 'zh', questionCount: '10' },
podcast: { llmModel: 'deepseek-v3.2', ttsModel: 'gemini-2.5-pro-preview-tts', voiceName: 'Kore', voiceNameB: 'Puck' },
video: { llmModel: 'deepseek-v3.2' },
ppt: { llmModel: 'gpt-4o', genFigModel: 'gemini-2.5-flash-image', stylePreset: 'modern', stylePrompt: '', language: 'zh', page_count: '10' },
mindmap: { llmModel: 'gpt-4o', mindmapStyle: 'default' },
drawio: { llmModel: 'gpt-4o', diagramType: 'auto', diagramStyle: 'default', language: 'zh' },
flashcard: { llmModel: 'gpt-4o', language: 'zh', cardCount: '20' },
quiz: { llmModel: 'gpt-4o', language: 'zh', questionCount: '10' },
podcast: { llmModel: 'gpt-4o', ttsModel: 'gemini-2.5-pro-preview-tts', voiceName: 'Kore', voiceNameB: 'Puck' },
video: { llmModel: 'gpt-4o' },
};
const [studioConfigByTool, setStudioConfigByTool] = useState<Record<StudioToolId, Record<string, string>>>(() => {
try {
Expand Down
Loading