File tree Expand file tree Collapse file tree 4 files changed +20
-0
lines changed
Expand file tree Collapse file tree 4 files changed +20
-0
lines changed Original file line number Diff line number Diff line change @@ -23,6 +23,14 @@ DEFAULT_SESSION_ID=default_session
2323MEMORY_KEY = chat_history
2424MAX_HISTORY_MESSAGES = 20
2525
26+ # ===========================================
27+ # LANGSMITH 监控配置
28+ # ===========================================
29+ LANGSMITH_TRACING = true
30+ LANGSMITH_ENDPOINT = https://api.smith.langchain.com
31+ LANGSMITH_API_KEY = your_langsmithapi_key_here
32+ LANGSMITH_PROJECT = mystical-oracle
33+
2634# ===========================================
2735# API 密钥 (API Keys) - 可选配置
2836# ===========================================
Original file line number Diff line number Diff line change @@ -23,6 +23,14 @@ DEFAULT_SESSION_ID=King
2323MEMORY_KEY = chat_history
2424MAX_HISTORY_MESSAGES = 10
2525
26+ # ===========================================
27+ # LANGSMITH 监控配置
28+ # ===========================================
29+ LANGSMITH_TRACING = true
30+ LANGSMITH_ENDPOINT = https://api.smith.langchain.com
31+ LANGSMITH_API_KEY = your_langsmithapi_key_here
32+ LANGSMITH_PROJECT = mystical-oracle
33+
2634# ===========================================
2735# API 密钥 (API Keys) - 必须配置
2836# ===========================================
Original file line number Diff line number Diff line change @@ -78,6 +78,9 @@ mystical-oracle/
7878 # 模型配置
7979 OLLAMA_MODEL=qwen2.5:latest
8080 OLLAMA_BASE_URL=http://localhost:11434
81+
82+ # LangSmith 监控配置
83+ LANGSMITH_API_KEY=your_langsmithapi_key_here
8184 ```
8285
83864 . ** 启动外部服务**
Original file line number Diff line number Diff line change @@ -6,6 +6,7 @@ starlette==0.47.2
66
77# LangChain framework
88langchain == 0.3.26
9+ langsmith == 0.4.10
910langchain-community == 0.3.27
1011langchain-core == 0.3.69
1112langchain-ollama == 0.3.5
You can’t perform that action at this time.
0 commit comments