67 lines
1.2 KiB
Plaintext
67 lines
1.2 KiB
Plaintext
[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 =
|
||
|
||
[stream]
|
||
# /api/workflows/stream 进度事件间隔(秒)
|
||
progress_interval = 0.3
|
||
|
||
[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
|
||
|