Skip to content

DeepTutor: Lifelong Personalized Tutoring. https://deeptutor.info/.

fix:docker

Bingxi Zhao12a5172a8b74
diff --git a/.env.example_CN b/.env.example_CN
index 5057bb43b..e578ab3fe 100644
--- a/.env.example_CN
+++ b/.env.example_CN
@@ -133,25 +133,12 @@ TTS_API_KEY=
# ============================================================================
# 配置用于研究功能的外部搜索 API。
-# 用于网络搜索的搜索提供商
-# 选项:perplexity、baidu
-# 默认:perplexity
+# (可选)用于网络搜索的搜索提供商
+# 提供商:perplexity, tavily, serper, jina, exa
SEARCH_PROVIDER=perplexity
-# ----------------------------------------------------------------------------
-# Perplexity AI 搜索配置
-# ----------------------------------------------------------------------------
-# Perplexity API 密钥,用于网络搜索功能
-# 在此获取 API 密钥:https://www.perplexity.ai/settings/api
-PERPLEXITY_API_KEY=
-
-# ----------------------------------------------------------------------------
-# 百度 AI 搜索配置
-# ----------------------------------------------------------------------------
-# 百度 API 密钥,用于智能搜索和生成
-# 在此获取 API 密钥:https://console.bce.baidu.com/ai_apaas/resource
-# 格式:bce-v3/ALTAK-xxx/xxx 或完整的 API 密钥
-BAIDU_API_KEY=
+# [Optional] API key for your chosen search provider
+SEARCH_API_KEY=pplx-xxx
# ============================================================================
# 日志配置
diff --git a/.gitignore b/.gitignore
index 8335bce61..db0ffc306 100644
--- a/.gitignore
+++ b/.gitignore
@@ -10,6 +10,7 @@ data/user/
data/knowledge_bases/
run_code_workspace/
src/agents/question/reference_papers/
+src/services/rag/eg_only_for_analysis/
# ============================================
# Python Related
diff --git a/web/.env.local b/web/.env.local
index 8840a64d6..0b6543af3 100644
--- a/web/.env.local
+++ b/web/.env.local
@@ -3,7 +3,7 @@
# ============================================
# This file is automatically updated based on config/main.yaml
# and environment variables (NEXT_PUBLIC_API_BASE, NEXT_PUBLIC_API_BASE_EXTERNAL)
-#
+#
# To configure for remote access, set in your .env file:
# NEXT_PUBLIC_API_BASE=http://your-server-ip:8001
# ============================================
diff --git a/web/app/knowledge/page.tsx b/web/app/knowledge/page.tsx
index dba3b312f..ca8c8b145 100644
--- a/web/app/knowledge/page.tsx
+++ b/web/app/knowledge/page.tsx
@@ -29,7 +29,7 @@ interface FileSystemDirectoryReader {
declare global {
interface DataTransferItem {
- webkitGetAsEntry?(): FileSystemEntry | null;
+ webkitGetAsEntry(): FileSystemEntry | null;
}
}
import {
diff --git a/web/hooks/useResearchReducer.ts b/web/hooks/useResearchReducer.ts
index dbbcdeacb..348c53be8 100644
--- a/web/hooks/useResearchReducer.ts
+++ b/web/hooks/useResearchReducer.ts
@@ -4,7 +4,7 @@ import {
ResearchEvent,
TaskState,
ThoughtEntry,
- LogEntry,
+ ResearchLogEntry,
TopicBlock,
ReportOutline,
} from "../types/research";
@@ -35,8 +35,8 @@ export const initialResearchState: ResearchState = {
// Helper to create a log entry
const createLog = (
message: string,
- type: LogEntry["type"] = "info",
-): LogEntry => ({
+ type: ResearchLogEntry["type"] = "info",
+): ResearchLogEntry => ({
id: Math.random().toString(36).substring(7),
timestamp: Date.now(),
type,
diff --git a/web/types/research.ts b/web/types/research.ts
index f216a9aa9..f5e6bfd44 100644
--- a/web/types/research.ts
+++ b/web/types/research.ts
@@ -65,7 +65,7 @@ export interface ReportOutline {
conclusion_instruction?: string;
}
-export interface LogEntry {
+export interface ResearchLogEntry {
id: string;
timestamp: number;
type: "info" | "success" | "warning" | "error";
@@ -106,7 +106,7 @@ export interface ResearchState {
sectionIndex?: number;
totalSections?: number;
};
- logs: LogEntry[]; // Global log stream
+ logs: ResearchLogEntry[]; // Global log stream
}
// WebSocket Event Types