Refactor embedding configuration to remove local model support, transitioning to a unified remote API approach. Update environment variables and documentation accordingly. Enhance error handling in the orchestrator and related modules to reflect these changes. This update simplifies the embedding process and improves overall system reliability.
This commit is contained in:
@@ -13,10 +13,7 @@ MAX_TOKENS=4096
|
||||
# 生成与校验默认 SQL Server(T-SQL);可改为 mysql / postgresql 等
|
||||
TEXT2SQL_DIALECT=sqlserver
|
||||
|
||||
# ========== Embedding 配置 ==========
|
||||
# 默认 false:使用远程 /v1/embeddings(须配置下方 OPENAI_* 或 MODELSCOPE_* 等)
|
||||
# 仅当 true 时需设置 EMBEDDING_MODEL_PATH 指向本地 HuggingFace 模型目录
|
||||
USE_LOCAL_EMBEDDING=false
|
||||
# ========== Embedding 配置(远程 /v1/embeddings,须配置下方 OPENAI_* 或 MODELSCOPE_* 等)==========
|
||||
# ModelScope 推理 API:https://www.modelscope.cn/docs/inference-api
|
||||
# MODELSCOPE_API_KEY=ms-b95f3233-4797-4efd-90e6-b3728743571d
|
||||
# MODELSCOPE_BASE_URL=https://api-inference.modelscope.cn/v1
|
||||
|
||||
Reference in New Issue
Block a user