init
This commit is contained in:
@@ -0,0 +1,68 @@
|
||||
[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
|
||||
dataset_ids = f5b8b854d63a11f083230242c0a8e006
|
||||
document_ids = 819cf100f52611f0a7fa0242c0a8e006
|
||||
api_key = ragflow-xxxxx
|
||||
retrieval = /api/v1/retrieval
|
||||
upload = /api/v1/documents
|
||||
cache_ttl = 600
|
||||
|
||||
[redis]
|
||||
enabled = false
|
||||
url = redis://localhost:6379/0
|
||||
db = 0
|
||||
|
||||
[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
|
||||
|
||||
Reference in New Issue
Block a user