Files
more_dots/config/config.ini.example
T
2026-03-02 15:35:02 +08:00

86 lines
1.6 KiB
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
[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
retrieval_top_k = 3
table_retrieval_dataset_id =
sql_gen_dataset_id =
[redis]
# 是否启用 Redis 缓存(用于 sql_gen_prompts)
enabled = false
url = redis://localhost:6379/0
db = 0
# SQL 提示词缓存过期秒数
sql_prompt_ttl = 600
[stream]
# /api/workflows/stream 进度事件间隔(秒)
progress_interval = 0.3
[logging_mysql]
# 是否启用结构化日志写入 MySQL
enabled = false
host = 127.0.0.1
port = 3306
user = root
password =
database = more_dots
table = structured_logs
connect_timeout = 5
[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