feat(api): 接入智谱 embedding-3(1024 维)并迁移 memory_chunks 向量列

This commit is contained in:
Kevin
2026-03-30 13:54:35 +08:00
parent aac484463d
commit 42ae2a5e91
11 changed files with 157 additions and 26 deletions

View File

@@ -17,6 +17,16 @@ DEEPSEEK_API_KEY=sk-09f17fb61c5a4299a3afc2a01de7af75
DEEPSEEK_BASE_URL=https://api.deepseek.com
DEEPSEEK_MODEL=deepseek-chat
# =============================================================================
# Memory 向量(智谱 BigModel 国内 embedding-3与 DeepSeek/OpenAI 用途分离)
# 文档https://docs.bigmodel.cn/cn/guide/models/embedding/embedding-3
# 本期固定 1024 维;库表经迁移与 MEMORY_EMBEDDING_DIMENSION 一致。
# =============================================================================
ZHIPU_API_KEY=524eda18eb3848e881eefe4c7ef17ec2.xBmGUabYDEa44m3M
# 默认国内通用端点(与 ZhipuAiClient 一致)
# EMBEDDING_BASE_URL=https://open.bigmodel.cn/api/paas/v4
EMBEDDING_MODEL=embedding-3
# =============================================================================
# Database
# =============================================================================