-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.env
More file actions
32 lines (24 loc) · 1.24 KB
/
Copy path.env
File metadata and controls
32 lines (24 loc) · 1.24 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
########################################################
# 阿里云通义千问 API 配置
########################################################
# 阿里云模型 API 密钥(必填)
# 获取地址:https://dashscope.console.aliyun.com/apiKey
# 把下一行的 your-api-key-here 替换为你的实际 API 密钥,同时把前面的 # 去掉,或者可以在运行环境中设置该环境变量
# ALIYUN_MODEL_API_KEY=your-api-key-here
# 阿里云 API 端点(可选,使用默认值即可)
ALIYUN_BASE_URL=https://dashscope.aliyuncs.com/compatible-mode/v1
# 对话生成模型(可选,默认:qwen-plus)
# 可选值:qwen-turbo, qwen-plus, qwen-max, qwen-flash 等
# 模型列表:https://help.aliyun.com/zh/model-studio/getting-started/models
ALIYUN_CHAT_MODEL=qwen-plus
# 文本嵌入模型(可选,默认:text-embedding-v4)·
ALIYUN_EMBED_MODEL=text-embedding-v4
# 嵌入向量维度(可选,默认 1024)
ALIYUN_EMBED_DIM=1024
# API 超时时间(秒,默认:180 = 3分钟)
ALIYUN_API_TIMEOUT=180
########################################################
# 向量数据库配置
########################################################
# ChromaDB 数据库路径(可选,默认:./vector_db)
CHROMA_DB_PATH=./vector_db