ai-courseware/langchain-project/.env

35 lines
892 B
Bash

# 应用配置
APP_NAME=LangChain Customer Service Bot
APP_VERSION=1.0.0
DEBUG=true
LOG_LEVEL=INFO
# API配置
HOST=0.0.0.0
PORT=8200
CORS_ORIGINS=["http://localhost:3000", "http://localhost:5173"]
# 路由模型配置(用于意图分类)
ROUTER_MODEL_BASE_URL=http://localhost:11434
ROUTER_MODEL=qwen3:8b
# 对话模型配置(用于自然对话)
CHAT_MODEL_BASE_URL=http://localhost:11434
CHAT_MODEL=deepseek-v3.1:671b-cloud
# LangSmith监控配置
LANGCHAIN_TRACING_V2=true
LANGCHAIN_API_KEY=lsv2_pt_e6a2f0ca51874efcacfa0799146d698b_f09cd87b
LANGCHAIN_PROJECT=default
# LANGSMITH_TRACING=true
# LANGSMITH_API_KEY="<your-langsmith-api-key>"
# LANGSMITH_WORKSPACE_ID="<your-workspace-id>"
# 业务系统API配置
ORDER_API_BASE_URL=https://api.example.com
# 向量数据库配置
CHROMA_PERSIST_DIRECTORY=./data/chroma_db
EMBEDDING_MODEL=sentence-transformers/all-MiniLM-L6-v2