Files
more_dots/config/config.ini.example
T

65 lines
1.2 KiB
Plaintext
Raw Normal View History

2026-02-26 13:43:44 +08:00
[General]
# 默认使用的模型配置区域
DEFAULT_MODEL_SECTION = gpt-4o
# 最大重试次数
MAX_RETRIES = 3
# 请求超时时间
TIMEOUT = 30
[gpt-4o]
# 模型名称
MODEL_NAME = gpt-4o
# API 密钥
OPENAI_API_KEY = your_openai_api_key_here
[gpt-3.5-turbo]
# 模型名称
MODEL_NAME = gpt-3.5-turbo
# API 密钥
OPENAI_API_KEY = your_openai_api_key_here
[app]
# 服务名称
service_name = more-dots-api
# 监听地址
host = 0.0.0.0
# 监听端口
port = 8000
# 服务版本
version = 1.0.0
# 默认模型配置段(可覆盖 General.DEFAULT_MODEL_SECTION)
model_section = gpt-4o
[ragflow]
url = http://10.122.176.97:21020
api_key = ragflow-xxxxx
retrieval = /api/v1/retrieval
upload = /api/v1/documents
2026-02-26 18:06:17 +08:00
# 上传模式:overwrite(覆盖更新)或 append(追加)
upload_mode = overwrite
table_retrieval_dataset_id =
sql_gen_dataset_id =
2026-02-26 13:43:44 +08:00
[nacos]
# 是否启用 Nacos 注册
enabled = false
# Nacos 服务器地址
server = localhost:8848
# 命名空间
namespace = public
# 分组名称
group_name = DEFAULT_GROUP
# 集群名称
cluster_name = DEFAULT
# 账号(可选)
username =
# 密码(可选)
password =
# 心跳间隔(秒)
heartbeat_interval = 5
# 权重
weight = 1.0
# 是否临时实例
ephemeral = true