feat:修改nl2sql功能

This commit is contained in:
2026-09-14 10:57:48 +08:00
parent a7f9e182a4
commit 67d5cfc2b8
15 changed files with 206 additions and 54 deletions
-1
View File
@@ -19,7 +19,6 @@ def client() -> aioredis.Redis:
socket_connect_timeout=settings.redis.socket_connect_timeout,
socket_timeout=settings.redis.socket_timeout,
socket_keepalive=True, # 长连接保活,防代理/防火墙断连
retry_on_timeout=True, # 读超时自动重试,吸收瞬时抖动
health_check_interval=settings.redis.health_check_interval,
retry=Retry(FullJitterBackoff(base=1, cap=10), retries=3),
max_connections=settings.redis.max_connections,
+1
View File
@@ -96,6 +96,7 @@ class LLMCfg(BaseSettings):
api_key: str = ""
api_chat_model: str = ""
api_embed_model: str = ""
api_trust_env: bool = True # API 客户端是否读取系统代理环境变量
embed_dimensions: int # 向量维度:既作为 embeddings 请求的 dimensions 参数,也是 Milvus 建表/入库校验的维度;须与模型输出一致(MRL 模型如 qwen3-embedding 可任选 32~4096)
# —— 通用超参 ——
temperature: float