feat: multi-provider embedder — support OpenAI/DashScope with provider-specific defaults

This commit is contained in:
2026-07-05 01:43:23 +08:00
parent 5672472030
commit b89c6076e1
5 changed files with 173 additions and 36 deletions
+4 -3
View File
@@ -1,8 +1,9 @@
# md-vector-db 环境变量配置
# 复制此文件为 .env 并填入实际值
# 嵌入 API 密钥 (embed.mode=api 时使用)
EMBED_API_KEY=sk-your-key-here
# 嵌入 API 密钥embed.mode=api 时使用
# 支持的 provider: openai (含硅基流动/智谱/DeepSeek), dashscope (阿里云)
EMBED_API_KEY=your-api-key
# HTTP API 认证密钥 (不设置则跳过认证)
# HTTP API 认证密钥不设置则跳过认证
MD_VECTOR_API_KEY=your-secret-key