Files
more_dots/config/config.ini.example
2026-03-24 18:07:22 +08:00

111 lines
2.7 KiB
Plaintext
Raw Permalink 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 =
# 当表检索未命中时,使用该默认表继续生成 SQL
default_table_name = apbo_eta_ful
[redis]
# 是否启用 Redis 缓存(用于 sql_gen_prompts)
enabled = false
url = redis://localhost:6379/0
db = 0
# SQL 提示词缓存过期秒数
sql_prompt_ttl = 600
# 是否使用 Redis 作为 SQL 提示词主存储(启用后优先从 Redis 读取,支持热更新)
sql_prompt_redis_primary = false
[stream]
# /api/workflows/stream 进度事件间隔(秒)
progress_interval = 0.3
[conversation]
# 是否启用按会话自动续接上下文的多轮对话
enable_multi_turn = false
# 对话记忆最大消息数(默认 10 条,约 5 轮对话)
# 每条对话包含用户消息和 AI 回复,10 条消息约等于 5 轮完整对话
max_history_messages = 10
# 是否启用记忆压缩(可选,未来扩展)
enable_memory_compression = false
# 记忆压缩阈值(超过此数量时触发压缩,未来扩展)
compression_threshold = 8
[logging_mysql]
# 是否启用结构化日志写入 MySQL
enabled = false
# 是否输出 conversations/messages 实体读写阶段调试日志到控制台
entity_debug_enabled = false
host = 127.0.0.1
port = 3306
user = root
password =
database = more_dots
# 结构化日志表
table = structured_logs
# 消息落库表(Messages 实体)
messages_table = ipc_apbo.messages
# 会话表名(用于 conversation_id 创建/校验/更新时间)
conversation_table = ipc_apbo.conversations
connect_timeout = 5
[nacos]
# 是否启用 Nacos 注册
enabled = false
# Nacos 服务器地址
server = localhost:8848
# 命名空间
namespace = public
# 分组名称
group_name = DEFAULT_GROUP
# 集群名称
cluster_name = DEFAULT
# 账号(可选)
username =
# 密码(可选)
password =
# 可选:仅用于 Nacos 注册的端口(不影响应用监听端口 app.port)
# 未配置时默认使用 app.port
register_port = 26004
# 心跳间隔(秒)
heartbeat_interval = 5
# 权重
weight = 1.0
# 是否临时实例
ephemeral = true